-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.eslintrc.yaml
109 lines (109 loc) · 2.44 KB
/
.eslintrc.yaml
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
parser: '@typescript-eslint/parser'
extends:
- google
- 'plugin:react/recommended'
- 'eslint:recommended'
- 'plugin:@typescript-eslint/recommended'
plugins:
- react
- '@typescript-eslint'
- unused-imports
env:
browser: true
es2021: true
globals:
window: true
parserOptions:
ecmaFeatures:
jsx: true
ecmaVersion: 12
sourceType: module
rules:
'@typescript-eslint/camelcase': 'off'
'@typescript-eslint/explicit-function-return-type':
- error
- allowExpressions: true
allowTypedFunctionExpressions: true
allowHigherOrderFunctions: true
allowDirectConstAssertionInArrowFunctions: true
allowConciseArrowFunctionExpressionsStartingWithVoid: false
'@typescript-eslint/explicit-module-boundary-types':
- warn
- allowArgumentsExplicitlyTypedAsAny: true
allowDirectConstAssertionInArrowFunctions: true
allowedNames: []
allowHigherOrderFunctions: true
allowTypedFunctionExpressions: true
'@typescript-eslint/no-explicit-any': 'warn'
'@typescript-eslint/no-invalid-this':
- error
'@typescript-eslint/no-unused-vars':
- error
- varsIgnorePattern: _
camelcase: 'off'
arrow-parens:
- error
- always
indent:
- error
- 2
max-len:
- 1
- code: 110
ignoreComments: true
ignorePattern: >-
^(\s*[a-zA-Z_]+:
'[^']+'[,;]*)|(.*interpolate.*)|(.*require.*)|(.*_\.template.*)|(<svg
.*)|(<rect .*)|(<polygon .*)$
ignoreRegExpLiterals: true
ignoreTrailingComments: true
ignoreUrls: true
tabWidth: 2
no-console: warn
no-invalid-this: 'off'
no-mixed-operators: error
no-multiple-empty-lines:
- warn
- max: 1
no-nested-ternary: error
no-param-reassign: error
no-plusplus: error
object-curly-spacing:
- warn
- always
quote-props:
- error
- as-needed
quotes:
- error
- single
radix:
- 1
- as-needed
react/display-name: 'off'
react/jsx-wrap-multilines:
- warn
- arrow: parens
assignment: parens
condition: parens
declaration: parens
logical: parens
prop: parens
return: parens
require-jsdoc: 'off'
semi:
- error
- always
space-infix-ops:
- error
- int32Hint: false
# unused-imports/no-unused-imports: error
unused-imports/no-unused-vars:
- error
- args: after-used
argsIgnorePattern: ^_
vars: all
varsIgnorePattern: ^_
settings:
react:
version: detect