use eslint

This commit is contained in:
Sergey Tsegelnyk 2018-03-17 21:45:08 +02:00 committed by Igor Korsakov
parent de46a5c6fe
commit 604792707f
2 changed files with 1 additions and 12 deletions

View file

@ -1,18 +1,7 @@
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"modules": true
}
},
"plugins": [
"react", "standard"
],
"env": {
"es6": true
},
"extends": ["standard", "standard-react"]
}

View file

@ -29,7 +29,7 @@
"ios": "react-native-scripts ios",
"postinstall": "./node_modules/.bin/rn-nodeify --install buffer,events,process,stream,util,inherits,fs,path --hack",
"test": "nodejs ./node_modules/.bin/mocha tests/* && node node_modules/jest/bin/jest.js",
"lint": "./node_modules/.bin/standard | ./node_modules/.bin/snazzy"
"lint": "./node_modules/.bin/eslint *.js screen/**/*.js"
},
"jest": {
"preset": "jest-expo"