build: Clean up Gruntfile
* Sort jshintrc a-z and section it.
* Remove grunt.js from jshintignore (file no longer exists).
* Simplify jshint config by using globstar. The jshintignore
file still applies (to skip jquery.uls.data.js).
* Update jshint config to also validate Gruntfile.js
* Update listed dependency on 'grunt' and 'grunt-cli' to the
versions they currently expand to already. We don't know if
we're compatible with older versions. '^x.y' means, equal or
higher (within the same major release). Similar to '~x.y',
except that tilde tolerates older versions.
* Update grunt-contrib-jshint and grunt-contrib-qunit to their
latest versions.
* Remove obsolete jshintrc parsing hack, use built-in 'jshintrc'
option as of v0.8.0.
* Remove unused 'pgk' property in grunt config.
* Remove unused grunt-contrib-jasmine and grunt-contrib-copy
from devDependencies (unused as of ab9b01444f).
This commit is contained in:
18
.jshintrc
18
.jshintrc
@@ -1,26 +1,32 @@
|
||||
{
|
||||
// Enforcing
|
||||
"bitwise": true,
|
||||
"camelcase": true,
|
||||
"curly": true,
|
||||
"eqeqeq": true,
|
||||
"forin": false,
|
||||
"immed": true,
|
||||
"latedef": true,
|
||||
"newcap": true,
|
||||
"noarg": true,
|
||||
"noempty": true,
|
||||
"nonew": true,
|
||||
"onevar": true,
|
||||
"quotmark": "single",
|
||||
"regexp": false,
|
||||
"strict": true,
|
||||
"trailing": true,
|
||||
"undef": true,
|
||||
"unused": true,
|
||||
"onevar": true,
|
||||
"bitwise": true,
|
||||
"forin": false,
|
||||
"regexp": false,
|
||||
"strict": true,
|
||||
|
||||
// Relax
|
||||
"laxbreak": true,
|
||||
"smarttabs": true,
|
||||
"multistr": true,
|
||||
"smarttabs": true,
|
||||
|
||||
// Environment
|
||||
"browser": true,
|
||||
|
||||
"predef": [
|
||||
"_",
|
||||
"jQuery",
|
||||
|
||||
Reference in New Issue
Block a user