Skip to content

Commit

Permalink
chore: Modify lint-staged config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jan 26, 2022
1 parent 4b7db56 commit 9424fd8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"*.{js,jsx,ts,tsx,html,less,md,json}": [
"prettier --write"
]
}
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
{
"files": ".prettierrc",
"options": { "parser": "json" }
},
{
"files": ".lintstagedrc",
"options": { "parser": "json" }
}
]
}
5 changes: 0 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,6 @@
"react-app/jest"
]
},
"lint-staged": {
"*.{js,jsx,ts,tsx,html,less,md,json}": [
"prettier --write"
]
},
"peerDependencies": {
"@babel/runtime": ">=7.11.0",
"react": ">=16.8.0",
Expand Down

0 comments on commit 9424fd8

Please sign in to comment.