forked from mozilla/kitsune
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
63 lines (58 loc) · 1.37 KB
/
.eslintrc
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
extends: eslint:recommended
rules:
# Turning on extra rules
quotes: [2, "single", "avoid-escape"]
no-alert: [2]
no-use-before-define: [2, "nofunc"]
space-before-blocks: [2, "always"]
space-after-keywords: [2]
dot-location: [2, "property"]
wrap-iife: [2, "inside"]
brace-style: [2, "1tbs", {"allowSingleLine": true}]
comma-style: [2]
linebreak-style: [2]
no-lonely-if: [2]
spaced-comment: [2]
no-this-before-super: [2]
constructor-super: [2]
indent: [2, 2, {"SwitchCase": 1}]
# Turning off default rules. Should some of these be warnings?
no-console: [0]
no-unused-vars: [0]
no-var: [0]
comma-dangle: [0]
new-cap: [0]
no-underscore-dangle: [0]
camelcase: [0]
no-extra-strict: [0]
no-inner-declarations: [0]
no-loop-func: [0]
no-func-assign: [0]
ecmaFeatures:
arrowFunctions: true
binaryLiterals: true
blockBindings: true
classes: true
defaultParams: true
destructuring: true
forOf: true
generators: true
modules: true
objectLiteralComputedProperties: true
objectLiteralDuplicateProperties: true
objectLiteralShorthandMethods: true
objectLiteralShorthandProperties: true
octalLiterals: true
regexUFlag: true
regexYFlag: true
spread: true
superInFunctions: true
templateStrings: true
unicodeCodePointEscapes: true
jsx: true
env:
browser: true
settings:
resolve.root:
- node_modules
- src