-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.yml
120 lines (120 loc) · 2.07 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
env:
node: true
browser: true
es2021: true
extends:
- 'eslint:recommended'
- 'plugin:@typescript-eslint/recommended'
parser: '@typescript-eslint/parser'
parserOptions:
ecmaVersion: 12
sourceType: module
plugins:
- '@typescript-eslint'
ignorePatterns:
- 'build'
- 'data'
- 'node_modules'
rules:
indent:
- error
- 2
- ignoreComments: true
linebreak-style:
- error
- unix
quotes:
- error
- single
- allowTemplateLiterals: true
avoidEscape: true
'@typescript-eslint/no-unused-vars':
- warn
- vars: all
args: none
varsIgnorePattern: React
'@typescript-eslint/no-empty-function':
- error
no-unused-vars:
- warn
- vars: all
args: none
ignoreRestSiblings: false
caughtErrors: none
varsIgnorePattern: React
semi:
- error
- never
max-len:
- error
- code: 120
ignoreComments: true
ignoreStrings: true
ignoreUrls: true
ignoreRegExpLiterals: true
eol-last:
- error
- always
arrow-spacing:
- error
- before: true
after: true
keyword-spacing:
- error
space-in-parens:
- error
- never
space-infix-ops:
- error
space-before-function-paren:
- error
- anonymous: always
named: never
asyncArrow: always
space-before-blocks:
- error
- always
object-curly-spacing:
- error
- always
object-curly-newline:
- error
- ImportDeclaration:
multiline: true
minProperties: 3
ExportDeclaration:
multiline: true
minProperties: 3
comma-spacing:
- error
- before:
false
after:
true
spaced-comment:
- error
- always
- exceptions:
- '-'
- '+'
block:
balanced: true
markers:
- '/'
- '#'
- '-'
- '='
no-trailing-spaces:
- error
no-warning-comments:
- warn
- terms:
- TODO
- FIXME
location: anywhere
no-multiple-empty-lines:
- error
- max: 1
maxEOF: 1
no-unneeded-ternary:
- warn