Skip to content

Commit b43a459

Browse files
committed
Update lint-staged config and format eslint.config.js
- Add Prettier formatting for all non-JS files using *.!(js) pattern - Format eslint.config.js file
1 parent c9ca48e commit b43a459

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

eslint.config.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,14 @@ export default [
2222
},
2323
},
2424
rules: {
25-
"no-unused-vars": ["error", {
26-
"varsIgnorePattern": "^_",
27-
"argsIgnorePattern": "^_",
28-
"caughtErrorsIgnorePattern": "^_"
29-
}],
25+
"no-unused-vars": [
26+
"error",
27+
{
28+
varsIgnorePattern: "^_",
29+
argsIgnorePattern: "^_",
30+
caughtErrorsIgnorePattern: "^_",
31+
},
32+
],
3033
},
3134
},
3235
];

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,6 @@
7979
"eslint --cache --fix",
8080
"prettier --write"
8181
],
82-
"*.{css,md,html}": "prettier --write"
82+
"*.!(js)": "prettier --write"
8383
}
8484
}

0 commit comments

Comments
 (0)