
* Add grunt-jscs and .jscsrc (lint trailing whitespaces and indentation length) * Cleanup .jshintrc (use globals instead of deprecated predefs) * Add Gruntfile.js and *.json linting to npm test N.B. This does not lint the whole src/ directory during grunt test but this should definitely be our goal. Please try to de-lint any js files you touch during development using a texteditor that support linting (Sublime Text 3 and SublimeLinter 3 with jshint/jscs plugins work great)
34 lines
611 B
Plaintext
34 lines
611 B
Plaintext
{
|
|
"strict": true,
|
|
"globalstrict": true,
|
|
"node": true,
|
|
"browser": true,
|
|
"nonew": true,
|
|
"curly": true,
|
|
"eqeqeq": true,
|
|
"immed": true,
|
|
"newcap": true,
|
|
"regexp": true,
|
|
"evil": true,
|
|
"eqnull": true,
|
|
"expr": true,
|
|
"undef": true,
|
|
"unused": true,
|
|
|
|
"globals": {
|
|
"console": true,
|
|
"Promise": true,
|
|
"importScripts": true,
|
|
"process": true,
|
|
"Event": true,
|
|
"self": true,
|
|
"describe": true,
|
|
"it": true,
|
|
"sinon": true,
|
|
"mocha": true,
|
|
"before": true,
|
|
"beforeEach": true,
|
|
"after": true,
|
|
"afterEach": true
|
|
}
|
|
} |