Skip to content

Commit

Permalink
lint: use cache for perf improvement
Browse files Browse the repository at this point in the history
Reduces from ~8s to ~2s
  • Loading branch information
incognitojam committed Jul 7, 2024
1 parent 355f67a commit cc11f95
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ import solid from 'eslint-plugin-solid/configs/typescript.js'
import stylistic from '@stylistic/eslint-plugin'

export default [
{ languageOptions: { globals: globals.browser } },
{
languageOptions: { globals: globals.browser },
ignores: ['.github', '.husky', '.vscode', 'node_modules', 'dist'],
},
js.configs.recommended,
...ts.configs.recommendedTypeChecked,
{
Expand Down Expand Up @@ -46,6 +49,5 @@ export default [
'@stylistic/quotes': ['error', 'single', { avoidEscape: true }],
'@stylistic/semi': ['error', 'never'],
},
ignores: ['node_modules', 'dist'],
},
]
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"build": "vite build",
"dev": "vite",
"serve": "vite prefix",
"lint": "eslint",
"lint": "eslint --cache --cache-location node_modules/.eslintcache",
"prepare": "husky",
"pre-commit": "bun lint",
"test": "vitest run"
Expand Down

0 comments on commit cc11f95

Please sign in to comment.