Browse Source

Merge pull request #158 from RubaXa/jshint

Extract JSHint settings into .jshintrc
pull/168/head
Lebedev Konstantin 10 years ago
parent
commit
d04b2951cb
  1. 24
      .jshintrc
  2. 23
      Gruntfile.js

24
.jshintrc

@ -0,0 +1,24 @@
{
"strict": true,
"newcap": false, // "Tolerate uncapitalized constructors"
"node": true,
"expr": true, // - true && call() "Expected an assignment or function call and instead saw an expression."
"supernew": true, // - "Missing '()' invoking a constructor."
"laxbreak": true,
"white": true,
"globals": {
"define": true,
"test": true,
"expect": true,
"module": true,
"asyncTest": true,
"start": true,
"ok": true,
"equal": true,
"notEqual": true,
"deepEqual": true,
"window": true,
"document": true,
"performance": true
}
}

23
Gruntfile.js

@ -12,28 +12,7 @@ module.exports = function (grunt) {
all: ['*.js', '!*.min.js'], all: ['*.js', '!*.min.js'],
options: { options: {
strict: true, jshintrc: true
newcap: false, // "Tolerate uncapitalized constructors"
node: true,
expr: true, // - true && call() "Expected an assignment or function call and instead saw an expression."
supernew: true, // - "Missing '()' invoking a constructor."
laxbreak: true,
white: true,
globals: {
define: true,
test: true,
expect: true,
module: true,
asyncTest: true,
start: true,
ok: true,
equal: true,
notEqual: true,
deepEqual: true,
window: true,
document: true,
performance: true
}
} }
}, },

Loading…
Cancel
Save