Skip to content

Commit

Permalink
chore: use eslint --cache option
Browse files Browse the repository at this point in the history
  • Loading branch information
BatuhanW committed Mar 1, 2023
1 parent a70a5fe commit b01c94d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ yarn-error.log*
# eslint cache
example/.eslintcache
example/.cache
.eslintcache

examples/**/package-lock.json
.next

# cli tool
/refine
/refine
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@
"nuke:lockfiles": "lerna exec --ignore @pankod/refine-codemod -- rm -rf package-lock.json && lerna exec --ignore @pankod/refine-codemod -- rm -rf yarn.lock && lerna exec --ignore @pankod/refine-codemod -- rm -rf pnpm-lock.yaml",
"nuke:node_modules": "lerna clean --yes",
"bootstrap:codemod": "cd packages/codemod && npm ci && cd ../..",
"lint:fix": "npm run lint -- --quiet --fix",
"lint:fix": "eslint -c ./.eslintrc --quiet --fix --cache packages examples",
"lint:staged": "lint-staged",
"test:coverage": "npm run test --stream -- -- -- --coverage"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"eslint -c ./.eslintrc --quiet --fix"
"eslint -c ./.eslintrc --quiet --fix --cache packages examples"
]
},
"devDependencies": {
Expand Down

0 comments on commit b01c94d

Please sign in to comment.