Skip to content

Commit 50bda07

Browse files
Andrey Okonetchnikovokonet
authored andcommitted
chore: Use prettier for *.js, *.json and *.md files
1 parent 838b5ed commit 50bda07

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.lintstagedrc.json

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
{
2-
"linters": {
3-
"*.js": [
4-
"yarn lint:base --fix",
5-
"git add"
6-
],
7-
".*rc": "jsonlint"
8-
}
2+
"linters": {
3+
"*.{js,json,md}": ["prettier --write", "git add"],
4+
"*.js": ["yarn lint:base --fix", "git add"],
5+
".*{rc, json}": "jsonlint"
6+
}
97
}

0 commit comments

Comments
 (0)