Skip to content

Commit

Permalink
chore: Use prettier for *.js, *.json and *.md files
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Okonetchnikov authored and okonet committed Apr 3, 2018
1 parent 838b5ed commit 50bda07
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
{
"linters": {
"*.js": [
"yarn lint:base --fix",
"git add"
],
".*rc": "jsonlint"
}
"linters": {
"*.{js,json,md}": ["prettier --write", "git add"],
"*.js": ["yarn lint:base --fix", "git add"],
".*{rc, json}": "jsonlint"
}
}

0 comments on commit 50bda07

Please sign in to comment.