8 #########################
9 ## Only add globals if you're absolutely certain they need to be globals
10 ##########################
13 #########################
15 ## set to 1 to disallow as warning
16 ## set to 2 to disallow as error
17 #########################
19 #########################
21 #########################
22 # Disallow use of `console`
25 # Disallow warning comments
33 # Warns when variables are defined but never used
36 # Enforces comma style (first or last)
41 # Enforces one true `this` variable
45 # Allows dangling underscores in identifiers
46 no-underscore-dangle: 2
48 # Enforces function expressions to have a name
51 # Set maximum depth of nested callbacks
56 #########################
58 ##########################
59 # Enforces camel case names
62 # Prohibit use of == and != in favor of === and !==
65 # Suppresses warnings about == null comparisons
68 # No mixing tabs and spaces, with 2 spaces only
69 no-mixed-spaces-and-tabs: 2
71 # Prohibits use of a variable before it is defined
72 no-use-before-define: 2
74 # Requires capitalized names for constructor functions
77 # Prohibits use of explicitly undeclared variables
80 # Enforces Use Strict at the top of function scope
85 # Requires variable declarations to be at the top
88 # Enforce curly braces around blocks in loops and conditionals
91 # Prohibits the use of immediate function invocations w/o wrapping in parentheses
94 # Prohibits `argument.caller` and `argument.callee`
97 # Requires all `for in` loops to filter object's items
100 # Prohibits comparing a variable against itself
103 # Prohibits use of `undefined` variable
106 # Prohibits nested ternaries
109 # Enforces a space before blocks
114 # Enforces spaces following keywords
119 # Enforces quoted property names
124 # Enforces padded blocks
129 # Enforce functions as expressions
134 # Require brace style
139 # Prohibits Yoda conditions
144 # Enforce use of single quotation marks for strings.
149 # Disallow or enforce spaces inside of curly braces in objects.
150 object-curly-spacing:
154 # Disallow or enforce spaces inside of brackets.
155 array-bracket-spacing:
159 # Disallow or enforce spaces inside of computed properties.
160 computed-property-spacing: