Skip to content

Commit

Permalink
ci(eslint): enable cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ivangabriele committed Jun 8, 2024
1 parent dc8aba4 commit fee1040
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"ecmaVersion": 2022,
"project": "./tsconfig.json"
},
"ignorePatterns": ["/.yarn/", "/build/", "/clamav/", "/node_modules/", "/src-tauri/"],
"ignorePatterns": ["/.yarn/", "/build/", "/clamav/", "/dist/", "/node_modules/", "/src-tauri/"],
"rules": {
"@typescript-eslint/no-use-before-define": "off",

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"start": "./src-tauri/target/release/clamav-desktop",
"test": "yarn test:lint && yarn test:type && yarn test:unit:core && test:unit:webview",
"test:e2e": "xvfb-run wdio run ./configs/wdio.config.ts",
"test:lint": "eslint --ext cjs,cts,js,json,jsonc,mjs,mts,ts,tson,tsx .",
"test:lint": "eslint --cache --ext cjs,cts,js,jsx,mjs,mts,ts,tsx .",
"test:sec": "ggshield iac scan all",
"test:type": "tsc --noEmit -p ./tsconfig.ci.json",
"test:unit:core": "make test",
Expand Down Expand Up @@ -112,9 +112,9 @@
"which": "4.0.0"
},
"lint-staged": {
"*.{md,yaml,yml}": "prettier --write",
"*.{json,md,yaml,yml}": "prettier --write",
"*.{ts,tsx}": [
"yarn eslint --ext cjs,cts,js,json,jsonc,mjs,mts,ts,tson,tsx",
"yarn eslint --ext cjs,cts,js,jsx,mjs,mts,ts,tsx",
"bash -c 'npm run test:type'"
]
},
Expand Down

0 comments on commit fee1040

Please sign in to comment.