Skip to content

Commit 4d5b3fc

Browse files
Fix eslint error and formatting when running pre-commit hook
1 parent 3200fda commit 4d5b3fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lint-staged.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const lintStagedConfig = {
22
// run formatting and linting on all supported file types
3-
"*.{js,json,md,ts,yaml,yml}": "npm run format:check",
4-
"*.{js,ts}": ["npm run lint"],
3+
"*.{js,json,md,ts,yaml,yml}": "npm run format:write",
4+
"*.{js,ts}": ["npm run lint:fix"],
55
};
66

77
export default lintStagedConfig;

0 commit comments

Comments
 (0)