mirror of
https://github.com/jquery-validation/jquery-validation.git
synced 2025-12-14 20:35:47 +01:00
JSHint: Extract configuration to dotfiles
This commit is contained in:
6
.jshintignore
Normal file
6
.jshintignore
Normal file
@@ -0,0 +1,6 @@
|
||||
node_modules/
|
||||
lib/
|
||||
test/qunit/
|
||||
dist/
|
||||
demo/
|
||||
*.min.js
|
||||
17
.jshintrc
Normal file
17
.jshintrc
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"boss": true,
|
||||
"curly": true,
|
||||
"eqeqeq": true,
|
||||
"eqnull": true,
|
||||
"expr": true,
|
||||
"immed": true,
|
||||
"noarg": true,
|
||||
"onevar": true,
|
||||
"quotmark": "double",
|
||||
"smarttabs": true,
|
||||
"trailing": true,
|
||||
"undef": true,
|
||||
"unused": true,
|
||||
|
||||
"jquery": true
|
||||
}
|
||||
32
Gruntfile.js
32
Gruntfile.js
@@ -56,42 +56,12 @@ grunt.initConfig({
|
||||
},
|
||||
jshint: {
|
||||
options: {
|
||||
curly: true,
|
||||
eqeqeq: true,
|
||||
immed: true,
|
||||
latedef: true,
|
||||
newcap: true,
|
||||
noarg: true,
|
||||
sub: true,
|
||||
undef: true,
|
||||
eqnull: true,
|
||||
browser: true,
|
||||
globals: {
|
||||
jQuery: true,
|
||||
$: true,
|
||||
console: true
|
||||
}
|
||||
jshintrc: true
|
||||
},
|
||||
files: [
|
||||
'src/**/*.js'
|
||||
],
|
||||
test: {
|
||||
options: {
|
||||
globals: {
|
||||
jQuery: true,
|
||||
$: true,
|
||||
QUnit: true,
|
||||
module: true,
|
||||
test: true,
|
||||
start: true,
|
||||
stop: true,
|
||||
expect: true,
|
||||
ok: true,
|
||||
equal: true,
|
||||
deepEqual: true,
|
||||
strictEqual: true
|
||||
}
|
||||
},
|
||||
files: {
|
||||
src: [
|
||||
'test/*.js'
|
||||
|
||||
40
test/.jshintrc
Normal file
40
test/.jshintrc
Normal file
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"boss": true,
|
||||
"curly": true,
|
||||
"eqeqeq": true,
|
||||
"eqnull": true,
|
||||
"expr": true,
|
||||
"immed": true,
|
||||
"noarg": true,
|
||||
"onevar": true,
|
||||
"quotmark": "double",
|
||||
"smarttabs": true,
|
||||
"trailing": true,
|
||||
"undef": true,
|
||||
"unused": true,
|
||||
|
||||
"browser": true,
|
||||
"jquery": true,
|
||||
|
||||
"globals": {
|
||||
"asyncTest": false,
|
||||
"closeEnough": false,
|
||||
"deepEqual": false,
|
||||
"domEqual": false,
|
||||
"equal": false,
|
||||
"expect": false,
|
||||
"Globalize": false,
|
||||
"module": false,
|
||||
"notEqual": false,
|
||||
"notDeepEqual": false,
|
||||
"notStrictEqual": false,
|
||||
"ok": false,
|
||||
"QUnit": true,
|
||||
"start": false,
|
||||
"strictEqual": false,
|
||||
"stop": false,
|
||||
"test": false,
|
||||
"TestHelpers": true,
|
||||
"JSHINT": false
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user