Skip to content

Commit

Permalink
feat: adding husky and lintstaged configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio Tetsuo committed Jun 9, 2020
1 parent 2c3ab0d commit 63fd7ea
Show file tree
Hide file tree
Showing 4 changed files with 262 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .huskyrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"hooks": {
"pre-commit": "lint-staged",
}
}
8 changes: 8 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"*.+(js|ts|tsx)": [
"eslint"
],
"**/*.+(js|json|ts|tsx)": [
"prettier --write",
],
}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@
"devDependencies": {
"eslint": "^7.2.0",
"eslint-config-prettier": "^6.11.0",
"husky": "^4.2.5",
"lint-staged": "^10.2.9",
"npm-run-all": "^4.1.5",
"prettier": "^2.0.5"
}
}
}

0 comments on commit 63fd7ea

Please sign in to comment.