Skip to content

Commit

Permalink
Merge pull request #20 from job13er/add-mocha-rules
Browse files Browse the repository at this point in the history
eslint@3.x and mocha rules
  • Loading branch information
job13er committed Jul 15, 2016
2 parents 991fa14 + a05c486 commit 4b1b27d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 12 deletions.
18 changes: 12 additions & 6 deletions eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
{
"extends": ["standard"],
"parser": "babel-eslint",
"plugins": ["mocha"],
"rules": {
"camelcase": 2,
"max-len": [2, 120, 4, {
"ignoreComments": true,
"ignoreUrls": true
}],
"mocha/handle-done-callback": 2,
"mocha/no-exclusive-tests": 2,
"mocha/no-global-tests": 2,
"mocha/no-pending-tests": 2,
"mocha/no-skipped-tests": 1,
"valid-jsdoc": [
2,
{
Expand All @@ -26,11 +37,6 @@
},
"requireReturn": false
}
],
"camelcase": 2,
"max-len": [2, 120, 4, {
"ignoreComments": true,
"ignoreUrls": true
}]
]
}
}
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,15 @@
"homepage": "https://github.com/ciena-frost/frost-standard#readme",
"devDependencies": {
"chai": "^3.4.1",
"eslint": "^2.8.0",
"eslint": "^3.0.1",
"istanbul": "^0.4.2",
"mocha": "^2.4.2"
},
"dependencies": {
"babel-eslint": "^6.0.0",
"eslint-config-standard": "^5.2.0",
"eslint-plugin-promise": "^1.1.0",
"eslint-plugin-standard": "^1.3.1"
"babel-eslint": "^6.1.2",
"eslint-config-standard": "^5.3.5",
"eslint-plugin-mocha": "job13er/eslint-plugin-mocha#add-ember-mocha-support",
"eslint-plugin-promise": "^2.0.0",
"eslint-plugin-standard": "^2.0.0"
}
}
}

0 comments on commit 4b1b27d

Please sign in to comment.