forked from hemamaps/svg-injector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.jshintrc
38 lines (35 loc) · 1.65 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
34
35
36
37
38
{
/* Environments */
"browser": true,
"mocha": true,
"node": true,
/* Additional global variables */
"predef": [
"expect",
"define",
"valid",
"fixture"
],
/* Enforcing options */
"esnext": true, // Allow ES.next (ES6) syntax (ex: `const`)
"bitwise": true, // Prohibit bitwise operators (&, |, ^, etc.)
"camelcase": true, // Force all variable names to use either camelCase or UPPER_CASE with underscores
"curly": true, // Require {} for every new block or scope
"eqeqeq": true, // Require triple equals i.e. `===`
"forin": true, // Prohibit `for in` loops without `hasOwnPrototype`
"immed": true, // Require immediate invocations to be wrapped in parens e.g. `( function(){}() );`
"latedef": true, // Prohibit variable use before definition
"newcap": true, // Require names of constructor functions to be capitalized
"noarg": true, // Prohibit use of `arguments.caller` and `arguments.callee`
"noempty": false, // Prohibit empty blocks
"nonew": true, // Prohibit use of constructors for side-effects
"plusplus": true, // Prohibit use of `++` & `--`
"quotmark": "single", // Require quote marks to be consistently single quotes
"regexp": true, // Prohibit `.` and `[^...]` in regular expressions
"undef": true, // Require all non-global variables be declared before they are used
"unused": true, // Warn about unused variables
"strict": false, // Require ES5 strict mode
"trailing": true, // Prohibit trailing whitespace in code
/* Relaxing options */
"asi": false // Require semicolons at the end of lines
}