configure lint-staged

This commit is contained in:
Collin M. Barrett 2019-09-23 18:46:28 -05:00
parent 5ecc1c0cb1
commit c458896768
2 changed files with 13 additions and 0 deletions

Binary file not shown.

View file

@ -31,6 +31,17 @@
"plugin:prettier/recommended"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"src/**/*.{js,jsx,ts,tsx,json,css,scss,md}": [
"prettier --write",
"git add"
]
},
"browserslist": {
"production": [
">0.2%",
@ -46,6 +57,8 @@
"devDependencies": {
"eslint-config-prettier": "^6.3.0",
"eslint-plugin-prettier": "^3.1.1",
"husky": "^3.0.5",
"lint-staged": "^9.3.0",
"prettier": "^1.18.2"
}
}