Skip to content

Commit fee1040

Browse files
committed
ci(eslint): enable cache
1 parent dc8aba4 commit fee1040

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.eslintrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"ecmaVersion": 2022,
99
"project": "./tsconfig.json"
1010
},
11-
"ignorePatterns": ["/.yarn/", "/build/", "/clamav/", "/node_modules/", "/src-tauri/"],
11+
"ignorePatterns": ["/.yarn/", "/build/", "/clamav/", "/dist/", "/node_modules/", "/src-tauri/"],
1212
"rules": {
1313
"@typescript-eslint/no-use-before-define": "off",
1414

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"start": "./src-tauri/target/release/clamav-desktop",
2626
"test": "yarn test:lint && yarn test:type && yarn test:unit:core && test:unit:webview",
2727
"test:e2e": "xvfb-run wdio run ./configs/wdio.config.ts",
28-
"test:lint": "eslint --ext cjs,cts,js,json,jsonc,mjs,mts,ts,tson,tsx .",
28+
"test:lint": "eslint --cache --ext cjs,cts,js,jsx,mjs,mts,ts,tsx .",
2929
"test:sec": "ggshield iac scan all",
3030
"test:type": "tsc --noEmit -p ./tsconfig.ci.json",
3131
"test:unit:core": "make test",
@@ -112,9 +112,9 @@
112112
"which": "4.0.0"
113113
},
114114
"lint-staged": {
115-
"*.{md,yaml,yml}": "prettier --write",
115+
"*.{json,md,yaml,yml}": "prettier --write",
116116
"*.{ts,tsx}": [
117-
"yarn eslint --ext cjs,cts,js,json,jsonc,mjs,mts,ts,tson,tsx",
117+
"yarn eslint --ext cjs,cts,js,jsx,mjs,mts,ts,tsx",
118118
"bash -c 'npm run test:type'"
119119
]
120120
},

0 commit comments

Comments
 (0)