mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 06:36:11 +03:00
Upgrade to current JSHint
This also allows us to move our settings to .jshintrc for better IDE & command-line integration - simply type "jshint" in the directory and it will use the same options.
This commit is contained in:
parent
dc81cde4ab
commit
6a214347d6
14
.jshintrc
Normal file
14
.jshintrc
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
"browser": true,
|
||||
"curly": true,
|
||||
"eqeqeq": false,
|
||||
"loopfunc": false,
|
||||
"noarg": true,
|
||||
"trailing": true,
|
||||
"undef": true,
|
||||
"unused": true,
|
||||
|
||||
"globals": {
|
||||
"OpenSeadragon": true
|
||||
}
|
||||
}
|
13
Gruntfile.js
13
Gruntfile.js
@ -147,18 +147,7 @@ module.exports = function(grunt) {
|
||||
},
|
||||
jshint: {
|
||||
options: {
|
||||
browser: true,
|
||||
curly: true,
|
||||
eqeqeq: false,
|
||||
loopfunc: false,
|
||||
noarg: true,
|
||||
trailing: true,
|
||||
undef: true,
|
||||
unused: true,
|
||||
|
||||
globals: {
|
||||
OpenSeadragon: true
|
||||
}
|
||||
jshintrc: '.jshintrc'
|
||||
},
|
||||
beforeconcat: sources,
|
||||
afterconcat: [ distribution ]
|
||||
|
@ -6,7 +6,7 @@
|
||||
"grunt": "~0.4.0",
|
||||
"grunt-contrib-compress": "~0.5.0",
|
||||
"grunt-contrib-concat": "~0.1.2",
|
||||
"grunt-contrib-jshint": "~0.1.1",
|
||||
"grunt-contrib-jshint": "~0.6.0",
|
||||
"grunt-contrib-uglify": "~0.2.2",
|
||||
"grunt-contrib-qunit": "~0.2.0",
|
||||
"grunt-contrib-connect": "~0.1.2",
|
||||
|
Loading…
Reference in New Issue
Block a user