enable eslint in tests/spec
with some eslint rules ignored for now
diff --git a/.eslintignore b/.eslintignore
index 4808be4..e87aa4b 100644
--- a/.eslintignore
+++ b/.eslintignore
@@ -1,3 +1,2 @@
bin/node_modules/*
bin/templates/project/*
-tests
diff --git a/package.json b/package.json
index 393931d..2aa1235 100644
--- a/package.json
+++ b/package.json
@@ -19,7 +19,7 @@
"jasmine": "npm run objc-tests && npm run jasmine-tests",
"objc-tests": "jasmine tests/spec/cordovalib.spec.js",
"jasmine-tests": "jasmine tests/spec/create.spec.js tests/spec/platform.spec.js",
- "eslint": "node node_modules/eslint/bin/eslint bin && node node_modules/eslint/bin/eslint tests"
+ "eslint": "node node_modules/eslint/bin/eslint bin && node node_modules/eslint/bin/eslint tests/spec"
},
"author": "Apache Software Foundation",
"license": "Apache-2.0",
diff --git a/tests/spec/.eslintrc.yml b/tests/spec/.eslintrc.yml
index 6afba65..eca347f 100644
--- a/tests/spec/.eslintrc.yml
+++ b/tests/spec/.eslintrc.yml
@@ -1,2 +1,11 @@
env:
- jasmine: true
\ No newline at end of file
+ jasmine: true
+
+rules:
+ # rules ignored in tests/spec for now:
+ standard/object-curly-even-spacing: off
+ space-before-function-paren: off
+ one-var: off
+ indent: off
+ no-unused-vars: off
+ comma-spacing: off