-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.yml
111 lines (95 loc) · 2.06 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
---
plugins:
- import
- lodash
- promise
- react
extends:
- eslint:recommended
- airbnb-typescript
- plugin:lodash/recommended
- plugin:promise/recommended
- prettier
parser: '@typescript-eslint/parser'
parserOptions:
project: ./tsconfig.json
env:
node: true
es6: true
es2020: true
browser: true
settings:
import/resolver:
node: { }
rules:
class-methods-use-this: off
key-spacing:
- error
- mode: minimum
afterColon: true
beforeColon: false
arrow-parens:
- error
- as-needed
object-shorthand:
- error
- properties
quote-props:
- error
- as-needed
- numbers: true
no-underscore-dangle:
- error
- allow: [ __typename ]
import/extensions:
- error
- ignorePackages
- js: never
jsx: never
ts: never
tsx: never
no-multiple-empty-lines:
- error
- max: 2
lodash/prefer-constant: off
lodash/import-scope: [ error, member ]
lodash/prefer-lodash-method: off
react/prop-types: off
react/jsx-props-no-spreading: off
react/no-did-update-set-state: off
react/jsx-props-no-multi-spaces: error
react/jsx-no-useless-fragment:
- error
- allowExpressions: true
react/jsx-indent-props:
- error
- 2
react/jsx-filename-extension:
- error
- extensions: [ '.js', '.jsx', '.ts', '.tsx' ]
react/jsx-curly-brace-presence:
- error
- props: always
children: ignore
react/static-property-placement:
- error
- 'static public field'
jsx-a11y/click-events-have-key-events: off
jsx-a11y/no-static-element-interactions: off
no-useless-constructor: off
'@typescript-eslint/no-useless-constructor': error
'@typescript-eslint/no-use-before-define': off
'@typescript-eslint/indent': off
overrides:
- files:
- 'start-dev.js'
- '**/*.config.js'
- 'config/webpack/*'
extends:
- eslint:recommended
- files:
- '**/*.ts'
- '**/*.tsx'
extends:
- 'plugin:@typescript-eslint/recommended'
- 'plugin:@typescript-eslint/recommended-requiring-type-checking'