diff --git a/.eslintrc.yml b/.eslintrc.yml new file mode 100644 index 00000000..f6aae321 --- /dev/null +++ b/.eslintrc.yml @@ -0,0 +1,10 @@ +root: true +extends: semistandard +rules: + indent: + - error + - 4 + camelcase: off + padded-blocks: off + operator-linebreak: off + no-throw-literal: off diff --git a/package.json b/package.json index 0bccf5c3..bb6c1205 100644 --- a/package.json +++ b/package.json @@ -19,10 +19,10 @@ "apache" ], "scripts": { - "test": "npm run jshint && jasmine", + "test": "npm run eslint && jasmine", "cover": "istanbul cover --root bin/templates/cordova --print detail jasmine", "test-build": "jasmine --captureExceptions --color spec/e2e/*.spec.js", - "jshint": "jshint bin && jshint spec" + "eslint": "eslint bin && eslint spec" }, "author": "Apache Software Foundation", "license": "Apache-2.0", @@ -43,9 +43,15 @@ "shelljs" ], "devDependencies": { + "eslint": "^4.0.0", + "eslint-config-semistandard": "^11.0.0", + "eslint-config-standard": "^10.2.1", + "eslint-plugin-import": "^2.3.0", + "eslint-plugin-node": "^5.0.0", + "eslint-plugin-promise": "^3.5.0", + "eslint-plugin-standard": "^3.0.1", "istanbul": "^0.4.2", "jasmine": "^2.5.2", - "jshint": "^2.6.0", "promise-matchers": "~0", "rewire": "^2.1.3" }, @@ -53,4 +59,4 @@ "node": ">=4.0.0" }, "engineStrict": true -} \ No newline at end of file +}