Skip to content

Commit

Permalink
chore: use eslint cache (#5001)
Browse files Browse the repository at this point in the history
  • Loading branch information
cardoso authored Dec 4, 2024
1 parent 6283e34 commit e829c8b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ coverage/
.project/
.nx
.nx-cache
.eslintcache

lib/
__benchmarks_results__/
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"scripts": {
"prepare": "husky && yarn build",
"lint": "eslint .",
"lint": "eslint . --cache",
"format": "prettier --write .",
"bundlesize": "node scripts/bundlesize/bundlesize.mjs",
"build": "nx run-many --target=build --exclude=@lwc/perf-benchmarks,@lwc/perf-benchmarks-components,@lwc/integration-tests,lwc",
Expand Down Expand Up @@ -74,11 +74,11 @@
"vitest": "^2.1.8"
},
"lint-staged": {
"*.{js,mjs,ts}": "eslint",
"*.{js,mjs,ts}": "eslint --cache",
"*.{css,js,json,md,mjs,ts,yaml,yml}": "prettier --write",
"{packages/**/package.json,scripts/tasks/check-and-rewrite-package-json.js}": "node ./scripts/tasks/check-and-rewrite-package-json.js",
"{LICENSE-CORE.md,**/LICENSE.md,yarn.lock,scripts/tasks/generate-license-files.js,scripts/shared/bundled-dependencies.js}": "node ./scripts/tasks/generate-license-files.js",
"*.{only,skip}": "eslint --no-eslintrc --plugin '@lwc/eslint-plugin-lwc-internal' --rule '@lwc/lwc-internal/forbidden-filename: error'"
"*.{only,skip}": "eslint --cache --no-eslintrc --plugin '@lwc/eslint-plugin-lwc-internal' --rule '@lwc/lwc-internal/forbidden-filename: error'"
},
"workspaces": [
"packages/@lwc/*",
Expand Down

0 comments on commit e829c8b

Please sign in to comment.