-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy path.eslintrc.yml
51 lines (44 loc) · 1.35 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
extends:
- airbnb-base
- prettier
plugins:
- prettier
- eslint-comments
env:
es6: true
node: true
rules:
prettier/prettier:
- error
- printWidth: 80
tabWidth: 2
semi: true
trailingComma: es5
bracketSpacing: true
jsxBracketSameLine: false
singleQuote: true
no-plusplus: off
consistent-return: off
no-underscore-dangle: off
no-param-reassign: off
func-names: off
linebreak-style: [off]
no-implicit-coercion: error
padding-line-between-statements: [
error,
{ blankLine: always, prev: [const, let, var], next: "*" },
{ blankLine: always, prev: "*", next: [const, let, var] },
{ blankLine: any, prev: [const, let, var], next: [const, let, var] },
{ blankLine: always, prev: "*", next: return },
{ blankLine: always, prev: "*", next: [case, default] },
{ blankLine: always, prev: [const, let, var, block, block-like], next: [block, block-like] },
{ blankLine: always, prev: directive, next: "*" },
{ blankLine: any, prev: directive, next: directive },
]
import/no-named-as-default: off
import/newline-after-import: error
eslint-comments/disable-enable-pair: error
eslint-comments/no-duplicate-disable: error
eslint-comments/no-unlimited-disable: error
eslint-comments/no-unused-disable: warn
eslint-comments/no-unused-enable: warn