Skip to content

Commit 1a24640

Browse files
committed
update lintstaged config
1 parent 4f4a0bd commit 1a24640

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.lintstagedrc.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
export default {
2-
'**/*.ts': () => [
3-
`npm run prettier`,
4-
'npm run check-ts',
5-
`npm run lint`,
2+
'*.ts': [
3+
'prettier --write',
4+
'tsc-files --noEmit --pretty',
5+
'eslint --fix'
66
],
7-
'**/*.(js|json)': () => [
8-
`npm run prettier`,
9-
`npm run lint`,
7+
'*.js': [
8+
'prettier --write',
9+
'eslint --fix'
1010
],
11-
'**/*.css': () => [
12-
`npm run prettier`,
11+
'*.{json,css}': [
12+
'prettier --write'
1313
]
1414
};

0 commit comments

Comments
 (0)