Skip to content

Commit b47207f

Browse files
committed
Convert YAML .eslintrc configs to JSON
1 parent 2e2f41a commit b47207f

File tree

4 files changed

+24
-16
lines changed

4 files changed

+24
-16
lines changed

.eslintrc

+14-9
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
1-
extends: node-style-guide
2-
3-
rules:
4-
indent: [2, 2]
5-
max-statements: [2, 50]
6-
new-cap: 0
7-
no-eq-null: 2
8-
no-unused-vars: [2, {vars: all, args: after-used}]
9-
strict: [2, global]
1+
{
2+
"extends": [
3+
"node-style-guide"
4+
],
5+
"rules": {
6+
indent: [2, 2],
7+
"max-statements": [2, 50],
8+
"new-cap": 0,
9+
"no-eq-null": 2,
10+
"no-unused-vars": [2, {"vars": "all", "args": "after-used"}],
11+
"space-in-brackets": 0,
12+
"strict": [2, "global"]
13+
}
14+
}

.jscsrc

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
{
22
"preset": "gulp",
3-
"requireCapitalizedComments": null
43
}

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@
5858
"scripts": {
5959
"prepublish": "marked-man --name gulp docs/CLI.md > gulp.1",
6060
"lint": "eslint . && jscs *.js bin/ lib/ test/",
61-
"test": "npm run-script lint && mocha --reporter spec",
61+
"pretest": "npm run lint",
62+
"test": "mocha --reporter spec",
6263
"coveralls": "istanbul cover _mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage"
6364
},
6465
"engines": {

test/.eslintrc

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
env:
2-
mocha: true
3-
4-
rules:
5-
max-len: 0
1+
{
2+
"env": {
3+
"mocha": true
4+
},
5+
"rules": {
6+
"max-len": 0
7+
}
8+
}

0 commit comments

Comments
 (0)