Skip to content

Commit

Permalink
Update scripts for eslint
Browse files Browse the repository at this point in the history
- Rename script names to `lint:js` and `lint:js:fix`. To be consistent with the "core" package.
- Add scripts that handle all formatting with one command
  • Loading branch information
kkosiorowska committed Nov 13, 2023
1 parent e3c2fd3 commit 7000c14
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
"build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview",
"lint:eslint": "eslint .",
"lint:fix:eslint": "eslint . --fix",
"format": "npm run lint:js && npm run lint:config",
"format:fix": "npm run lint:js:fix && npm run lint:config:fix",
"lint:js": "eslint .",
"lint:js:fix": "eslint . --fix",
"lint:config": "prettier -c '**/*.@(json|yaml|toml)'",
"lint:config:fix": "prettier -w '**/*.@(json|yaml|toml)'"
},
Expand Down

0 comments on commit 7000c14

Please sign in to comment.