add lint script to package

This commit is contained in:
Sergey Tsegelnyk 2018-03-17 21:00:06 +02:00 committed by Igor Korsakov
parent f734254799
commit 38226af505

View File

@ -28,7 +28,8 @@
"android": "react-native-scripts android",
"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"
"test": "nodejs ./node_modules/.bin/mocha tests/* && node node_modules/jest/bin/jest.js",
"lint": "./node_modules/.bin/standard | ./node_modules/.bin/snazzy"
},
"jest": {
"preset": "jest-expo"