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
ac9cad19
Commit
ac9cad19
authored
Apr 09, 2013
by
Timmy Willison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add onevar to jshintrc, but remove the option for linting the concatenated file
parent
e01a6231
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
Gruntfile.js
Gruntfile.js
+7
-4
.jshintrc
src/.jshintrc
+1
-0
No files found.
Gruntfile.js
View file @
ac9cad19
...
...
@@ -14,7 +14,12 @@ module.exports = function( grunt ) {
data
=
grunt
.
file
.
readJSON
(
filepath
);
}
catch
(
e
)
{}
return
data
;
};
},
srcHintOptions
=
readOptionalJSON
(
"src/.jshintrc"
);
// The concatenated file won't pass onevar
// But our modules can
delete
srcHintOptions
.
onevar
;
grunt
.
initConfig
({
pkg
:
grunt
.
file
.
readJSON
(
"package.json"
),
...
...
@@ -73,9 +78,7 @@ module.exports = function( grunt ) {
jshint
:
{
dist
:
{
src
:
[
"dist/jquery.js"
],
options
:
{
jshintrc
:
"src/.jshintrc"
}
options
:
srcHintOptions
},
grunt
:
{
src
:
[
"Gruntfile.js"
],
...
...
src/.jshintrc
View file @
ac9cad19
...
...
@@ -6,6 +6,7 @@
"expr": true,
"immed": true,
"noarg": true,
"onevar": true,
"quotmark": "double",
"smarttabs": true,
"trailing": 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