-
Notifications
You must be signed in to change notification settings - Fork 10
/
.eslintrc
58 lines (50 loc) · 942 Bytes
/
.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
# So parent files don't get applied
root: true
env:
es6: true
browser: true
node: true
mocha: true
rules:
# Style
comma-spacing: 2
eol-last: 2
indent: [2, 2]
new-cap: 2
one-var: [2, never]
quotes: [1, single]
space-after-keywords: 2
space-before-blocks: 2
spaced-comment: [2, always]
# Best practices
curly: 2
dot-location: [2, property]
eqeqeq: [2, allow-null]
guard-for-in: 2
no-caller: 2
no-extend-native: 2
no-loop-func: 2
no-unused-expressions: 2
wrap-iife: 2
yoda: 2
# Variables
no-undef: 2
# Syntax errors
comma-dangle: [2, never]
no-dupe-keys: 2
# ES6/2015
constructor-super: 2
no-const-assign: 1
no-this-before-super: 2
no-var: 2
prefer-const: 1
# Disabled
key-spacing: 0
no-underscore-dangle: 0
no-shadow: 0
no-shadow-restricted-names: 0
semi-spacing: 0
space-unary-ops: 0
space-infix-ops: 0
consistent-return: 0
parser: babel-eslint