-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.yml
157 lines (144 loc) · 3.44 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
parser: '@typescript-eslint/parser'
parserOptions:
ecmaVersion: 10
sourceType: module
ecmaFeatures:
impliedStrict: true
jsx: true
settings:
react:
pragma: React
plugins:
- '@typescript-eslint'
- import
- react
- jsx-a11y
- prettier
- react-hooks
extends:
- eslint:recommended
- plugin:@typescript-eslint/eslint-recommended
- plugin:@typescript-eslint/recommended
- prettier
- prettier/@typescript-eslint
- airbnb
env:
browser: true
rules:
prettier/prettier:
- error
- singleQuote: true
semi: off
no-undef: off
arrow-parens: off
implicit-arrow-linebreak: off
no-confusing-arrow: off
function-paren-newline: off
indent: off
object-curly-newline: off
operator-linebreak: off
object-curly-spacing: off
no-use-before-define: off
quote-props: off
jsx-quotes: off
space-infix-ops: off
no-multi-spaces: off
comma-dangle: off
arrow-spacing: off
comma-spacing: off
space-before-blocks: off
keyword-spacing: off
nonblock-statement-body-position: off
curly: off
padded-blocks: off
brace-style: off
no-trailing-spaces: off
block-spacing: off
max-len: off
array-callback-return: off
key-spacing: off
consistent-return: off
no-multiple-empty-lines: off
space-before-function-paren: off
no-unused-expressions: off
new-parens: off
global-require: off
object-property-newline: off
comma-style: off
no-throw-literal: off
max-classes-per-file: off
no-shadow: off
no-console: error
dot-notation: off
import/no-extraneous-dependencies: off
import/no-unresolved: off
import/named: off
import/export: off
import/extensions: off
import/prefer-default-export: off
jsx-a11y/no-autofocus: off
jsx-a11y/anchor-is-valid: off
react/jsx-curly-newline: off
react/style-prop-object: off
react/jsx-props-no-spreading: off
react/prop-types: off
react/jsx-indent: off
react/jsx-closing-tag-location: off
react/self-closing-comp: off
react/jsx-wrap-multilines: off
react/jsx-equals-spacing: off
react/jsx-one-expression-per-line: off
react/jsx-closing-bracket-location: off
react/destructuring-assignment: off
react/jsx-max-props-per-line: off
react/jsx-indent-props: off
react/jsx-tag-spacing: off
react/jsx-first-prop-new-line: off
react/jsx-props-no-multi-spaces: off
react/no-array-index-key: off
# quote-props: [error, as-needed]
eqeqeq: [error, smart]
no-dupe-keys: error
prefer-destructuring: error
no-shadow-restricted-names: error
no-unused-vars:
- error
- vars: all
varsIgnorePattern: ^_
args: after-used
ignoreRestSiblings: false
argsIgnorePattern: ^_
caughtErrors: all
caughtErrorsIgnorePattern: ^_$
no-useless-return: error
no-useless-computed-key: error
no-useless-rename: error
no-path-concat: error
no-useless-concat: error
prefer-template: error
no-param-reassign:
- error
- props: false
# import/no-mutable-exports: error
import/no-default-export: off
# import/first: error
# import/no-webpack-loader-syntax: error
react/jsx-uses-react: error
react/jsx-uses-vars: error
react/react-in-jsx-scope: error
react/require-default-props: off
react/jsx-filename-extension:
- error
- extensions:
- .js
- .tsx
react/no-unescaped-entities:
- error
- forbid:
- '<'
- '>'
- '{'
- '}'
react-hooks/rules-of-hooks: error
react-hooks/exhaustive-deps: error
'@typescript-eslint/ban-ts-comment': off