Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4586 from bgeuken/add_jshint_rules
[ci] Add jshint rule: undef & camelcase
- Loading branch information
Showing
11 changed files
with
131 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,20 @@ | ||
{ | ||
"eqeqeq" : true, // true: Require triple equals (===) for comparison | ||
"unused" : true, // Unused variables: true : all variables, last function parameter | ||
"camelcase" : true, // true: Identifiers must be in camelCase | ||
"eqeqeq" : true, // true: Require triple equals (===) for comparison | ||
"undef" : true, // true: Require all non-global variables to be declared (prevents global leaks) | ||
"unused" : true, // Unused variables: true : all variables, last function parameter | ||
|
||
"globals": { | ||
"$": false | ||
"globals" : { | ||
"$" : false, | ||
"document" : false, | ||
"editors" : false, // Set by codemirror | ||
"moment" : false, // Defined by Moment.js | ||
"Option" : false, // Constructor for creating an HTMLOptionElement. | ||
"ui" : false, | ||
"window" : false, | ||
// Defined in our views. FIXME: We might be able to solve these by not having inline js | ||
"isOutdatedUrl" : false, | ||
"mainProjects" : false, | ||
"exclProjects" : false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.