File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed
Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 1919 - uses : bahmutov/npm-install@v1
2020 with :
2121 install-command : yarn --immutable
22+ - name : Code quality
23+ run : make check
2224 - name : Unit Tests
2325 run : make test
2426 env :
Original file line number Diff line number Diff line change @@ -18,6 +18,12 @@ test: ## Launch unit tests
1818watch-test : # # Launch unit tests and watch for changes
1919 @yarn run watch-test
2020
21+ check : # # Lint and format the source code
22+ @yarn run check
23+
24+ lint : # # Lint the source code
25+ @yarn run lint
26+
2127format : # # Format the source code
2228 @yarn run format
2329
Original file line number Diff line number Diff line change 2727 ],
2828 "license" : " MIT" ,
2929 "scripts" : {
30+ "check" : " biome check" ,
3031 "format" : " biome format --write src" ,
31- "lint" : " biome lint --apply src" ,
32+ "lint" : " biome lint --write src" ,
3233 "precommit" : " lint-staged" ,
3334 "test" : " cross-env NODE_ENV=test vitest" ,
3435 "server" : " node ./bin/json-graphql-server.js example/data.js" ,
4142 },
4243 "lint-staged" : {
4344 "*.{js,jsx,ts,tsx}" : [
44- " biome lint --apply" ,
45- " biome format --write"
45+ " biome check --write"
4646 ]
4747 },
4848 "devDependencies" : {
You can’t perform that action at this time.
0 commit comments