Skip to content

Commit

Permalink
Convert YAML .eslintrc configs to JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
pdehaan committed Oct 25, 2015
1 parent 2e2f41a commit b47207f
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 16 deletions.
23 changes: 14 additions & 9 deletions .eslintrc
@@ -1,9 +1,14 @@
extends: node-style-guide

rules:
indent: [2, 2]
max-statements: [2, 50]
new-cap: 0
no-eq-null: 2
no-unused-vars: [2, {vars: all, args: after-used}]
strict: [2, global]
{
"extends": [
"node-style-guide"
],
"rules": {
indent: [2, 2],
"max-statements": [2, 50],
"new-cap": 0,
"no-eq-null": 2,
"no-unused-vars": [2, {"vars": "all", "args": "after-used"}],
"space-in-brackets": 0,
"strict": [2, "global"]
}
}
1 change: 0 additions & 1 deletion .jscsrc
@@ -1,4 +1,3 @@
{
"preset": "gulp",
"requireCapitalizedComments": null
}
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -58,7 +58,8 @@
"scripts": {
"prepublish": "marked-man --name gulp docs/CLI.md > gulp.1",
"lint": "eslint . && jscs *.js bin/ lib/ test/",
"test": "npm run-script lint && mocha --reporter spec",
"pretest": "npm run lint",
"test": "mocha --reporter spec",
"coveralls": "istanbul cover _mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage"
},
"engines": {
Expand Down
13 changes: 8 additions & 5 deletions test/.eslintrc
@@ -1,5 +1,8 @@
env:
mocha: true

rules:
max-len: 0
{
"env": {
"mocha": true
},
"rules": {
"max-len": 0
}
}

0 comments on commit b47207f

Please sign in to comment.