File tree 4 files changed +43
-0
lines changed
4 files changed +43
-0
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+
3
+ "extends" : " eslint:recommended" ,
4
+
5
+ "parserOptions" : {
6
+ "ecmaVersion" : 6 ,
7
+ "sourceType" : " module"
8
+ },
9
+
10
+ "env" : {
11
+ "browser" : true ,
12
+ "node" : true ,
13
+ "mocha" : true
14
+ },
15
+
16
+ "globals" : {
17
+ "cordova" : true ,
18
+ "Promise" : true ,
19
+ "Uint8Array" : true ,
20
+ "ArrayBuffer" : true ,
21
+ "FileReaderSync" : true ,
22
+ "sqlitePlugin" : true ,
23
+ "emit" : true ,
24
+ "PouchDB" : true ,
25
+ "should" : true ,
26
+ "testUtils" : true ,
27
+ "importScripts" : true
28
+ },
29
+
30
+ "rules" : {
31
+ "no-empty" : 0 ,
32
+ "no-console" : 0 ,
33
+ "semi" : [" error" , " always" ]
34
+ }
35
+ }
Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ before_install:
11
11
- nvm use stable
12
12
- npm install
13
13
- SAUCE_CONNECT_DOWNLOAD_ON_INSTALL=true node node_modules/sauce-connect-launcher/scripts/install.js
14
+ before_script :
15
+ - npm run lint
14
16
env :
15
17
matrix :
16
18
- COMMAND=test-phantom
Original file line number Diff line number Diff line change @@ -146,6 +146,10 @@ This will build the JS files and write them to `dist/`.
146
146
Testing
147
147
----
148
148
149
+ To run the eslint tests:
150
+
151
+ npm run lint
152
+
149
153
To run the tests on any available Android device:
150
154
151
155
npm run test-android
Original file line number Diff line number Diff line change 5
5
"scripts" : {
6
6
"build" : " rimraf dist && mkdirp dist && browserify -t rollupify -s sqlitePlugin src/javascript/index.js > dist/sqlite-plugin.js" ,
7
7
"build-test" : " bash ./bin/build-test.sh" ,
8
+ "lint" : " eslint src test/*js" ,
8
9
"test" : " npm run test-device" ,
9
10
"test-local" : " zuul --ui mocha-bdd --local 9000 --no-coverage test/test.js" ,
10
11
"test-phantom" : " npm run build && zuul --ui mocha-bdd --phantom --no-coverage test/test.js" ,
48
49
"colors" : " 1.1.2" ,
49
50
"cordova" : " 6.1.0" ,
50
51
"denodeify" : " 1.2.1" ,
52
+ "eslint" : " 2.7.0" ,
51
53
"lodash.find" : " 4.2.0" ,
52
54
"lodash.map" : " 4.2.1" ,
53
55
"lodash.zipobject" : " 4.1.2" ,
You can’t perform that action at this time.
0 commit comments