Initial commit
[yaffs-website] / node_modules / gulp-sass / .eslintrc
1 root: true
2
3 env:
4   mocha: true
5   node: true
6
7 # globals:
8   #########################
9   ## Only add globals if you're absolutely certain they need to be globals
10   ##########################
11   # console: true
12
13 #########################
14 ## set to 0 to allow
15 ## set to 1 to disallow as warning
16 ## set to 2 to disallow as error
17 #########################
18 rules:
19   #########################
20   ## Optional Rules
21   #########################
22   # Disallow use of `console`
23   no-console: 2
24
25   # Disallow warning comments
26   no-warning-comments:
27     - 1
28     - terms:
29         - todo
30         - fixme
31       location: anywhere
32
33   # Warns when variables are defined but never used
34   no-unused-vars: 1
35
36   # Enforces comma style (first or last)
37   comma-style:
38     - 2
39     - last
40
41   # Enforces one true `this` variable
42   consistent-this:
43     - 2
44     - self
45   # Allows dangling underscores in identifiers
46   no-underscore-dangle: 2
47
48   # Enforces function expressions to have a name
49   func-names: 0
50
51   # Set maximum depth of nested callbacks
52   max-nested-callbacks:
53     - 1
54     - 3
55
56   #########################
57   ## Core Rules
58   ##########################
59   # Enforces camel case names
60   camelcase: 2
61
62   # Prohibit use of == and != in favor of === and !==
63   eqeqeq: 2
64
65   # Suppresses warnings about == null comparisons
66   no-eq-null: 2
67
68   # No mixing tabs and spaces, with 2 spaces only
69   no-mixed-spaces-and-tabs: 2
70
71   # Prohibits use of a variable before it is defined
72   no-use-before-define: 2
73
74   # Requires capitalized names for constructor functions
75   new-cap: 2
76
77   # Prohibits use of explicitly undeclared variables
78   no-undef: 2
79
80   # Enforces Use Strict at the top of function scope
81   strict:
82     - 2
83     - global
84
85   # Requires variable declarations to be at the top
86   vars-on-top: 2
87
88   # Enforce curly braces around blocks in loops and conditionals
89   curly: 2
90
91   # Prohibits the use of immediate function invocations w/o wrapping in parentheses
92   wrap-iife: 2
93
94   # Prohibits `argument.caller` and `argument.callee`
95   no-caller: 2
96
97   # Requires all `for in` loops to filter object's items
98   guard-for-in: 2
99
100   # Prohibits comparing a variable against itself
101   no-self-compare: 2
102
103   # Prohibits use of `undefined` variable
104   no-undefined: 0
105
106   # Prohibits nested ternaries
107   no-nested-ternary: 2
108
109   # Enforces a space before blocks
110   space-before-blocks:
111     - 2
112     - always
113
114   # Enforces spaces following keywords
115   keyword-spacing:
116     - 2
117     - after: true
118
119   # Enforces quoted property names
120   quote-props:
121     - 2
122     - always
123
124   # Enforces padded blocks
125   padded-blocks:
126     - 1
127     - never
128
129   # Enforce functions as expressions
130   func-style:
131     - 2
132     - expression
133
134   # Require brace style
135   brace-style:
136     - 2
137     - stroustrup
138
139   # Prohibits Yoda conditions
140   yoda:
141     - 2
142     - never
143
144   # Enforce use of single quotation marks for strings.
145   quotes:
146     - 2
147     - single
148
149   # Disallow or enforce spaces inside of curly braces in objects.
150   object-curly-spacing:
151     - 2
152     - always
153
154   # Disallow or enforce spaces inside of brackets.
155   array-bracket-spacing:
156     - 2
157     - never
158
159   # Disallow or enforce spaces inside of computed properties.
160   computed-property-spacing:
161     - 2
162     - never