Skip to content

Commit

Permalink
setup(root): nx root:lint
Browse files Browse the repository at this point in the history
  • Loading branch information
NexZhu committed Dec 15, 2023
1 parent cf8b495 commit cbfa93c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@
},
"main": "index.js",
"scripts": {
"build": "nx run-many -t build",
"test": "nx run-many -t test",
"lint": "biome format . && biome check . && nx run-many -t lint",
"lint:fix": "biome format --write . && biome check --apply . && nx run-many -t lint:fix",
"gen-biome-json": "gen-biome-json",
"dev": "nx run-many -t dev",
"pulumi:init": "cd k8s && pnpm i --filter k8s",
Expand Down
12 changes: 12 additions & 0 deletions project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "root",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": ".",
"targets": {
"lint": {
"options": {
"command": "[ {args.fix} = 'true' ] && biome check . || biome check --apply .",
}
}
}
}

0 comments on commit cbfa93c

Please sign in to comment.