Skip to content

Commit 4fe57bb

Browse files
committed
chore(lint): expand lint-staged to include TS; dedupe eslint --cache flag
- lint-staged: run eslint on *.{js,ts,tsx,cjs,mjs} - scripts: remove duplicate --cache in lint:js - lockfile: sync after install
1 parent b49c290 commit 4fe57bb

2 files changed

Lines changed: 44 additions & 33 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"lint": "pnpm lint:docs && pnpm lint:json && pnpm lint:js",
2727
"lint-staged": "lint-staged",
2828
"lint:docs": "prettier --write README.md",
29-
"lint:js": "eslint --cache --fix --cache src test",
29+
"lint:js": "eslint --cache --fix src test",
3030
"lint:json": "prettier --write package.json",
3131
"prepare": "husky install",
3232
"prepublishOnly": "pnpm lint && pnpm build",
@@ -79,7 +79,7 @@
7979
}
8080
},
8181
"lint-staged": {
82-
"*.js": [
82+
"*.{js,ts,tsx,cjs,mjs}": [
8383
"eslint --fix"
8484
]
8585
},

pnpm-lock.yaml

Lines changed: 42 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)