feat: add ESLint as a githook

This commit is contained in:
Igor Gassmann 2018-04-05 11:20:13 -04:00
parent 6418b5a9f2
commit 915acacf6c
2 changed files with 5 additions and 2 deletions

View file

@ -1,7 +1,10 @@
{
"linters": {
"src/**/*.js": [
"src/**/*.{js,jsx,scss,json}": [
"prettier --write",
"git add"
],
"src/**/*.{js,jsx}": [
"eslint --fix",
"git add"
]

View file

@ -61,7 +61,7 @@
"electron-builder": "^19.49.0",
"electron-devtools-installer": "^2.2.1",
"electron-webpack": "^1.11.0",
"eslint": "^4.13.1",
"eslint": "^4.19.1",
"eslint-config-airbnb": "^16.1.0",
"eslint-config-prettier": "^2.9.0",
"eslint-import-resolver-webpack": "^0.8.3",