-
Notifications
You must be signed in to change notification settings - Fork 15
/
.eslintrc.yml
79 lines (79 loc) · 1.17 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
extends:
- eslint:recommended
- plugin:@typescript-eslint/eslint-recommended
- plugin:@typescript-eslint/recommended
- prettier
plugins:
- import
- '@typescript-eslint'
- prettier
parserOptions:
ecmaVersion: 2018
sourceType: module
env:
commonjs: true
browser: true
node: true
webextensions: true
es6: true
globals:
PRODUCTION: false
rules:
eol-last:
- error
- always
complexity:
- error
- max: 10
indent:
- error
- 2
- SwitchCase: 1
max-depth:
- error
- max: 3
max-nested-callbacks:
- error
- max: 2
max-params:
- error
- max: 4
max-statements:
- error
- max: 15
- ignoreTopLevelFunctions: false
max-len:
- error
- code: 120
ignoreUrls: true
max-lines:
- error
- max: 250
skipComments: true
skipBlankLines: true
semi:
- error
- always
space-before-blocks:
- error
- always
space-before-function-paren:
- error
- anonymous: always
named: never
asyncArrow: always
space-in-parens:
- error
- never
import/order:
- warn
space-infix-ops:
- error
- int32Hint: false
object-curly-spacing:
- error
- always
no-multi-spaces:
- error
prettier/prettier:
- warn