feat: add ESLint as a githook
This commit is contained in:
parent
6418b5a9f2
commit
915acacf6c
2 changed files with 5 additions and 2 deletions
|
@ -1,7 +1,10 @@
|
||||||
{
|
{
|
||||||
"linters": {
|
"linters": {
|
||||||
"src/**/*.js": [
|
"src/**/*.{js,jsx,scss,json}": [
|
||||||
"prettier --write",
|
"prettier --write",
|
||||||
|
"git add"
|
||||||
|
],
|
||||||
|
"src/**/*.{js,jsx}": [
|
||||||
"eslint --fix",
|
"eslint --fix",
|
||||||
"git add"
|
"git add"
|
||||||
]
|
]
|
||||||
|
|
|
@ -61,7 +61,7 @@
|
||||||
"electron-builder": "^19.49.0",
|
"electron-builder": "^19.49.0",
|
||||||
"electron-devtools-installer": "^2.2.1",
|
"electron-devtools-installer": "^2.2.1",
|
||||||
"electron-webpack": "^1.11.0",
|
"electron-webpack": "^1.11.0",
|
||||||
"eslint": "^4.13.1",
|
"eslint": "^4.19.1",
|
||||||
"eslint-config-airbnb": "^16.1.0",
|
"eslint-config-airbnb": "^16.1.0",
|
||||||
"eslint-config-prettier": "^2.9.0",
|
"eslint-config-prettier": "^2.9.0",
|
||||||
"eslint-import-resolver-webpack": "^0.8.3",
|
"eslint-import-resolver-webpack": "^0.8.3",
|
||||||
|
|
Loading…
Reference in a new issue