-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy path.jshintrc
executable file
·33 lines (27 loc) · 2.5 KB
/
.jshintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
// Details: https://github.com/victorporof/Sublime-JSHint#using-your-own-jshintrc-options
// Example: https://github.com/jshint/jshint/blob/master/examples/.jshintrc
// Documentation: http://www.jshint.com/docs/
/* Common enforcing options */
"bitwise": true, //This option prohibits the use of bitwise operators such as ^ (XOR), | (OR) and others. Bitwise operators are very rare in JavaScript programs and quite often & is simply a mistyped &&.
"camelcase": true, //This option allows you to force all variable names to use either camelCase style or UPPER_CASE with underscores.
"curly": true, //This option requires you to always put curly braces around blocks in loops and conditionals.
"eqeqeq": true, //This options prohibits the use of == and != in favor of === and !==.
"immed": true, //This option prohibits the use of immediate function invocations without wrapping them in parentheses.
"indent": 4, //This option enforces specific tab width for your code.
"latedef": true, //This option prohibits the use of a variable before it was defined, except for function declarations
"newcap": true, //This option requires you to capitalize names of constructor functions.
"noarg": true, //This option prohibits the use of arguments.caller and arguments.callee
"strict": false, //This option requires all functions to run in ECMAScript 5's strict mode.
"trailing": true, //This option makes it an error to leave a trailing whitespace in your code.
"quotmark": "double", //This option enforces the consistency of quotation marks used throughout your code. "double" allows only double quotes.
"undef": true, //This option prohibits the use of explicitly undeclared variables.
"unused": "vars", //This option warns when you define and never use your variables.
/* Common relaxing options */
"smarttabs": true, //This option suppresses warnings about mixed tabs and spaces when the latter are used for alignmnent only.
/* Common environment options */
"browser": true, //This option defines globals exposed by modern browsers: all the way from good old document and navigator to the HTML5 FileReader and other new developments in the browser world.
"devel": true, //This option defines globals that are usually used for logging poor-man's debugging: console, alert, etc.
/* Project specific environment options */
"globals": {}
}