-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
49 lines (46 loc) · 1.14 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
parser: babel-eslint
extends:
- standard
plugins:
- babel
- import
env:
node: true
rules:
eqeqeq: 0
no-var: 2
no-alert: 2
no-debugger: 2
semi: 0
space-before-function-paren: [2, {"anonymous": "always", "named": "never"}]
yoda: 0
arrow-parens: [0, "always"]
arrow-spacing: 2
brace-style: [2, "stroustrup"]
padded-blocks: 0
newline-after-var: 0
spaced-comment: 0
max-len: [2, 100, 4, {"ignoreUrls": true}]
array-bracket-spacing: [2, "never"]
computed-property-spacing: [2, "never"]
no-trailing-spaces: [2, {"skipBlankLines": true}]
# Disables generator-star-spacing check since there's an issue with babel
# Refs: https://github.com/babel/babel-eslint/issues/316
generator-star-spacing: 0
# Babel
babel/new-cap: 2
babel/object-curly-spacing: [2, "never"]
babel/object-shorthand: 2
babel/arrow-parens: 2
babel/no-await-in-loop: 1
# Import
import/no-unresolved: [2, {commonjs: true, amd: true}]
import/named: 2
import/namespace: 2
import/default: 2
import/export: 2
import/no-named-as-default: 2
import/no-commonjs: 0
import/no-amd: 2
import/imports-first: 2
import/no-duplicates: 2