-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc.yml
124 lines (124 loc) · 2.24 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
env:
es6: true
node: true
mocha: true
extends: 'eslint:recommended'
parserOptions:
sourceType: module
ecmaVersion: 8
parser: babel-eslint
rules:
indent:
- warn
- 2
- SwitchCase: 1
VariableDeclarator:
var: 2
let: 2
const: 3
linebreak-style:
- error
- unix
quotes:
- warn
- single
semi:
- error
- always
comma-dangle:
- warn
- only-multiline
no-dupe-keys: error
no-dupe-args: error
use-isnan: error
valid-typeof: error
curly: error
default-case: error
eqeqeq:
- error
- allow-null
guard-for-in: warn
no-else-return: warn
no-fallthrough: error
no-floating-decimal: warn
no-multi-str: error
no-octal: error
no-octal-escape: error
no-redeclare: error
no-with: error
no-void: error
radix: error
# strict: warn
no-delete-var: error
array-bracket-spacing:
- error
- never
block-spacing: error
brace-style:
- error
- 1tbs
- allowSingleLine: true
comma-spacing: error
comma-style:
- error
- last
computed-property-spacing: error
camelcase: warn
key-spacing:
- error
- beforeColon: false
afterColon: true
keyword-spacing: error
max-params:
- warn
- 6
new-cap:
- error
- newIsCap: true
capIsNew: false
properties: true
no-array-constructor: error
no-spaced-func: error
no-whitespace-before-property: error
no-trailing-spaces:
- error
- skipBlankLines: true
operator-linebreak: off
space-before-blocks:
- error
- always
space-before-function-paren:
- error
- never
space-in-parens:
- error
- never
space-infix-ops: error
space-unary-ops: error
spaced-comment:
- warn
- always
semi-spacing: error
constructor-super: error
generator-star-spacing: warn
yield-star-spacing: warn
no-const-assign: error
no-dupe-class-members: error
no-this-before-super: error
no-var: error
no-unused-vars:
- warn
- vars: local
args: none
prefer-arrow-callback: warn
prefer-const: off
prefer-rest-params: warn
prefer-spread: warn
prefer-template: warn
template-curly-spacing:
- warn
- never
valid-jsdoc: off
no-global-assign: error
no-unsafe-negation: error
require-yield: off