Skip to content

Commit de971ec

Browse files
committed
lint-staged: disable caching for eslint, stylelint and prettier
1 parent d90e3d9 commit de971ec

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.changeset/dirty-clubs-slide.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@knime/eslint-config": patch
3+
---
4+
5+
lint-staged: disabled caching as tools only run for individual files

packages/lint/lint-staged.config.mjs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
const eslint =
2-
"eslint --cache --cache-strategy content --cache-location node_modules/.cache/.eslintcache --fix";
1+
const eslint = "eslint --fix";
32

4-
const stylelint =
5-
"stylelint --cache --cache-strategy content --cache-location node_modules/.cache/.stylelintcache --fix --allow-empty-input";
3+
const stylelint = "stylelint --fix --allow-empty-input";
64

7-
const prettier = "prettier --cache --write --ignore-unknown";
5+
const prettier = "prettier --write --ignore-unknown";
86

97
export default {
108
"*.{js,jsx,cjs,mjs,ts,tsx,cts,mts}": [eslint, prettier],

0 commit comments

Comments
 (0)