Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jquery
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
jquery
Commits
fcaef889
Commit
fcaef889
authored
Oct 16, 2012
by
Mike Sherov
Committed by
Dave Methvin
Oct 16, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up jshintrc configs. Close gh-983.
parent
08e13454
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
36 deletions
+31
-36
.jshintrc
.jshintrc
+14
-10
grunt.js
grunt.js
+2
-11
.jshintrc
src/.jshintrc
+7
-7
.jshintrc
test/.jshintrc
+8
-8
No files found.
.jshintrc
View file @
fcaef889
{
{
"curly": true,
"options": {
"eqnull": true,
"curly": true,
"eqeqeq": true,
"eqeqeq": true,
"expr": true,
"eqnull": true,
"latedef": true,
"expr": true,
"noarg": true,
"latedef": true,
"quotmark": "double",
"noarg": true,
"smarttabs": true,
"node": true,
"trailing": true,
"quotmark": "double",
"undef": true
"smarttabs": true,
"trailing": true,
"undef": true,
"unused": true
}
}
}
grunt.js
View file @
fcaef889
...
@@ -5,9 +5,6 @@
...
@@ -5,9 +5,6 @@
*
*
*/
*/
/*jshint node: true */
/*global config:true, task:true, process:true*/
module
.
exports
=
function
(
grunt
)
{
module
.
exports
=
function
(
grunt
)
{
"use strict"
;
"use strict"
;
...
@@ -24,15 +21,10 @@ module.exports = function( grunt ) {
...
@@ -24,15 +21,10 @@ module.exports = function( grunt ) {
return
data
;
return
data
;
}
}
var
task
=
grunt
.
task
;
var
file
=
grunt
.
file
;
var
file
=
grunt
.
file
;
var
utils
=
grunt
.
utils
;
var
log
=
grunt
.
log
;
var
log
=
grunt
.
log
;
var
verbose
=
grunt
.
verbose
;
var
verbose
=
grunt
.
verbose
;
var
fail
=
grunt
.
fail
;
var
option
=
grunt
.
option
;
var
config
=
grunt
.
config
;
var
config
=
grunt
.
config
;
var
template
=
grunt
.
template
;
var
distpaths
=
[
var
distpaths
=
[
"dist/jquery.js"
,
"dist/jquery.js"
,
"dist/jquery.min.js"
"dist/jquery.min.js"
...
@@ -99,7 +91,7 @@ module.exports = function( grunt ) {
...
@@ -99,7 +91,7 @@ module.exports = function( grunt ) {
}
}
return
{
return
{
options
:
jshintrc
(),
grunt
:
jshintrc
(),
dist
:
jshintrc
(
"src/"
),
dist
:
jshintrc
(
"src/"
),
tests
:
jshintrc
(
"test/"
)
tests
:
jshintrc
(
"test/"
)
};
};
...
@@ -260,8 +252,7 @@ module.exports = function( grunt ) {
...
@@ -260,8 +252,7 @@ module.exports = function( grunt ) {
"Concatenate source (include/exclude modules with +/- flags), embed date/version"
,
"Concatenate source (include/exclude modules with +/- flags), embed date/version"
,
function
()
{
function
()
{
// Concat specified files.
// Concat specified files.
var
i
,
var
compiled
=
""
,
compiled
=
""
,
modules
=
this
.
flags
,
modules
=
this
.
flags
,
explicit
=
Object
.
keys
(
modules
).
length
>
1
,
explicit
=
Object
.
keys
(
modules
).
length
>
1
,
optIn
=
!
modules
[
"*"
],
optIn
=
!
modules
[
"*"
],
...
...
src/.jshintrc
View file @
fcaef889
{
{
"options": {
"options": {
"evil": true,
"browser": true,
"browser": true,
"
wsh
": true,
"
curly
": true,
"eqnull": true,
"eqnull": true,
"evil": true,
"expr": true,
"expr": true,
"curly": true,
"maxerr": 100,
"trailing": true,
"quotmark": "double",
"undef": true,
"smarttabs": true,
"smarttabs": true,
"sub": true,
"sub": true,
"maxerr": 100,
"trailing": true,
"quotmark": "double"
"undef": true,
"wsh": true
},
},
"globals": {
"globals": {
"define": true,
"define": true,
...
...
test/.jshintrc
View file @
fcaef889
{
{
"options": {
"options": {
"evil": true,
"browser": true,
"browser": true,
"wsh": true,
"curly": true,
"devel": true,
"eqnull": true,
"eqnull": true,
"evil": true,
"expr": true,
"expr": true,
"curly": true,
"trailing": true,
"undef": true,
"smarttabs": true,
"maxerr": 100,
"maxerr": 100,
"quotmark": "double",
"smarttabs": true,
"sub": true,
"sub": true,
"quotmark": "double"
"trailing": true,
"undef": true,
"wsh": true
},
},
"globals": {
"globals": {
"define": true,
"define": true,
...
@@ -24,7 +25,6 @@
...
@@ -24,7 +25,6 @@
"require": true,
"require": true,
"file": true,
"file": true,
"log": true,
"log": true,
"console": true,
"QUnit": true,
"QUnit": true,
"ok": true,
"ok": true,
"equal": true,
"equal": true,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment