Skip to content

Commit 9424fd8

Browse files
committed
chore: Modify lint-staged config.
1 parent 4b7db56 commit 9424fd8

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

.lintstagedrc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"*.{js,jsx,ts,tsx,html,less,md,json}": [
3+
"prettier --write"
4+
]
5+
}

.prettierrc

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
{
77
"files": ".prettierrc",
88
"options": { "parser": "json" }
9+
},
10+
{
11+
"files": ".lintstagedrc",
12+
"options": { "parser": "json" }
913
}
1014
]
1115
}

package.json

-5
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,6 @@
5252
"react-app/jest"
5353
]
5454
},
55-
"lint-staged": {
56-
"*.{js,jsx,ts,tsx,html,less,md,json}": [
57-
"prettier --write"
58-
]
59-
},
6055
"peerDependencies": {
6156
"@babel/runtime": ">=7.11.0",
6257
"react": ">=16.8.0",

0 commit comments

Comments
 (0)