Permalink
Browse files

restrict eslint rules

  • Loading branch information...
1 parent c49bbd0 commit 0f1ce6bff746139f0587dd68ab32a0f5e4f0fb9b @christian-bromann christian-bromann committed Oct 25, 2016
Showing with 33 additions and 16 deletions.
  1. +3 −16 .eslintrc
  2. +2 −0 package.json
  3. +28 −0 test/.eslintrc
View
@@ -3,21 +3,8 @@
"parser": "babel-eslint",
"rules": {
"indent": [2, 4],
- "generator-star-spacing": 0
- },
- "globals": {
- "expect": true,
- "assert": true,
- "describe": true,
- "before": true,
- "beforeEach": true,
- "after": true,
- "afterEach": true,
- "it": true,
- "should": true,
- "browser": true,
- "browserA": true,
- "mock": true,
- "sinon": true
+
+ /* Atom fix */
+ "generator-star-spacing": 0,
}
}
View
@@ -72,6 +72,8 @@
"codeclimate-test-reporter": "^0.1.1",
"coveralls": "~2.11.2",
"eslint-config-standard": "^5.3.5",
+ "eslint-plugin-chai-expect": "^1.1.1",
+ "eslint-plugin-mocha": "^4.7.0",
"eslint-plugin-promise": "^2.0.0",
"eslint-plugin-standard": "^2.0.0",
"grunt": "^0.4.5",
View
@@ -0,0 +1,28 @@
+{
+ "env": {
+ "mocha": true,
+ "jasmine": true
+ },
+ "plugins": [
+ "mocha",
+ "chai-expect"
+ ],
+ "rules": {
+ "mocha/no-exclusive-tests": [2],
+ "mocha/no-pending-tests": [2],
+ "mocha/handle-done-callback": [2],
+ "mocha/no-global-tests": [2],
+
+ "chai-expect/missing-assertion": [2],
+ "chai-expect/terminating-properties": [2],
+ "chai-expect/no-inner-compare": [2]
+ },
+ "globals": {
+ "browser": false,
+ "browserA": false,
+ "browserB": false,
+ "mock": false,
+ "sinon": false,
+ "assert": false,
+ }
+}

0 comments on commit 0f1ce6b

Please sign in to comment.