Skip to content

Commit

Permalink
🔧 Add lint-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbarbara committed Dec 17, 2018
1 parent 11f1d8b commit 521d144
Show file tree
Hide file tree
Showing 3 changed files with 587 additions and 3 deletions.
13 changes: 13 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"linters": {
"**/*.+(js|jsx)": [
"eslint",
"jest --findRelatedTests"
],
"**/*.+(js|jsx|json|yml|yaml|css|less|scss|ts|tsx|md|graphql|mdx)": [
"prettier --write",
"git add"
]
},
"ignore": ["**/dist/*"]
}
Loading

0 comments on commit 521d144

Please sign in to comment.