Commit 90525f25 by Nick Schonning

Chore: Convert JSHint to ESLint

Newer rule system and auto-fixing errors
parent 1cdad40d
{
"env": {
"node": true
},
"globals": {},
"rules": {
"no-bitwise": 2,
"camelcase": 0,
"curly": 2,
"eqeqeq": 2,
"no-unused-expressions": [
2,
{
"allowTernary": true
}
],
"wrap-iife": [
2,
"any"
],
"indent": [
2,
2,
{
"SwitchCase": 1
}
],
"linebreak-style": 2,
"no-multi-str": 2,
"new-cap": 2,
"no-caller": 2,
"quotes": [
2,
"single"
],
"strict": 0,
"no-undef": 2,
"no-unused-vars": 2
}
}
{
"bitwise": true,
"camelcase": false,
"curly": true,
"eqeqeq": true,
"expr": true,
"immed": true,
"indent": 2,
"laxbreak": true,
"mocha": true,
"multistr": true,
"newcap": true,
"noarg": true,
"node": true,
"quotmark": "single",
"strict": false,
"undef": true,
"unused": true
}
\ No newline at end of file
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
"coverage": "node scripts/coverage.js", "coverage": "node scripts/coverage.js",
"install": "node scripts/install.js", "install": "node scripts/install.js",
"postinstall": "node scripts/build.js", "postinstall": "node scripts/build.js",
"pretest": "node_modules/.bin/jshint bin lib scripts test", "pretest": "node_modules/.bin/eslint bin/node-sass lib scripts test",
"test": "node_modules/.bin/mocha test", "test": "node_modules/.bin/mocha test",
"build": "node scripts/build.js --force", "build": "node scripts/build.js --force",
"prepublish": "not-in-install && node scripts/prepublish.js || in-install" "prepublish": "not-in-install && node scripts/prepublish.js || in-install"
...@@ -69,8 +69,8 @@ ...@@ -69,8 +69,8 @@
}, },
"devDependencies": { "devDependencies": {
"coveralls": "^2.11.8", "coveralls": "^2.11.8",
"eslint": "^2.9.0",
"istanbul": "^0.4.2", "istanbul": "^0.4.2",
"jshint": "^2.9.1",
"mocha": "^2.4.5", "mocha": "^2.4.5",
"mocha-lcov-reporter": "^1.2.0", "mocha-lcov-reporter": "^1.2.0",
"rimraf": "^2.5.2" "rimraf": "^2.5.2"
......
{
"env": {
"mocha": true
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment