Add ESLint config for JS test files

This helps the editor catch simple syntax issues before finding out about them when running a test.
This commit is contained in:
Scott Kyle 2015-10-21 15:20:44 -07:00
parent 8ba3a24eae
commit d55d42da8d
3 changed files with 17 additions and 7 deletions

9
.eslintrc Normal file
View File

@ -0,0 +1,9 @@
{
"root": true,
"extends": "eslint:recommended",
"rules": {
"comma-dangle": 0,
"no-unused-vars": 1,
"strict": [2, "global"]
}
}

View File

@ -1,6 +1,4 @@
{
"root": true,
"extends": "eslint:recommended",
"env": {
"commonjs": true,
"browser": true,
@ -8,10 +6,5 @@
},
"globals": {
"global": true
},
"rules": {
"comma-dangle": 0,
"no-unused-vars": 1,
"strict": [2, "global"]
}
}

8
tests/.eslintrc Normal file
View File

@ -0,0 +1,8 @@
{
"env": {
"commonjs": true
},
"rules": {
"no-unused-vars": 0
}
}