-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc.yml
89 lines (88 loc) · 1.49 KB
/
.eslintrc.yml
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# eslint config
extends:
- airbnb-base
plugins:
- import
env:
node: true
es6: true
parser: babel-eslint
parserOptions:
sourceType: script
allowImportExportEverywhere: true
ecmaFeatures:
jsx: false
globals:
__dirname: false
describe: false
expect: false
it: false
rules:
import/no-extraneous-dependencies:
- error
- devDependencies: true
global-require: off
no-sequences: off
strict:
- 2
- never
one-var:
- 2
- always
no-bitwise: off
space-in-parens:
- error
- never
import/newline-after-import: off
indent:
- error
- 2
- flatTernaryExpressions: true
VariableDeclarator:
let: 2
const: 3
camelcase: off
func-names: off
newline-per-chained-call: off
max-len:
- error
- 200
comma-dangle:
- error
- never
no-mixed-operators: off
no-plusplus: off
no-console: off
arrow-parens:
- error
- as-needed
space-before-function-paren:
- error
- always
consistent-return: off
array-callback-return: off
prefer-const: off
curly: off
no-param-reassign: off
key-spacing:
- error
- beforeColon: true
no-shadow:
- 0
- warn
- allow:
- err
prefer-arrow-callback:
- error
- allowNamedFunctions: true
no-return-assign: off
no-use-before-define:
- error
- nofunc
no-nested-ternary: off
array-bracket-spacing:
- error
- always
prefer-destructuring: error
class-methods-use-this: off
no-confusing-arrow: off