-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.eslintrc.yml
67 lines (67 loc) · 1.79 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
env:
browser: true
es2021: true
extends:
- eslint:recommended
- plugin:react/recommended
- plugin:react-hooks/recommended
- plugin:@typescript-eslint/recommended
- prettier
parser: '@typescript-eslint/parser'
parserOptions:
ecmaFeatures:
jsx: true
ecmaVersion: 2018
sourceType: module
plugins:
- prettier
- react
- '@typescript-eslint'
rules:
array-callback-return: ['error', { checkForEach: true }]
arrow-body-style: 'error'
camelcase: 'error'
capitalized-comments: ['error', 'always', { 'ignoreConsecutiveComments': true }]
consistent-this: ['error', 'that']
curly: 'error'
default-case: 'error'
default-case-last: 'error'
dot-notation: 'error'
eqeqeq: 'error'
guard-for-in: 'error'
no-alert: 'error'
no-caller: 'error'
no-console: 'error'
no-duplicate-imports: 'error'
no-else-return: 'error'
no-negated-condition: 'error'
no-promise-executor-return: 'error'
no-return-assign: 'error'
no-self-compare: 'error'
no-sequences: 'error'
no-template-curly-in-string: 'error'
no-underscore-dangle: 'error'
no-unmodified-loop-condition: 'error'
no-unneeded-ternary: 'error'
no-unreachable-loop: 'error'
no-use-before-define: 'error'
no-useless-return: 'error'
no-var: 'error'
object-shorthand: 'error'
prefer-arrow-callback: 'error'
prefer-const: 'error'
prefer-template: 'error'
prettier/prettier: 'error'
radix: 'error'
react/jsx-fragments: 'error'
react/jsx-no-useless-fragment: 'error'
react/jsx-sort-props: ['error', { ignoreCase: true }]
react/self-closing-comp: ['error', { html: false }]
require-atomic-updates: 'error'
sort-imports: ['error', { ignoreCase: true, ignoreDeclarationSort: true }]
strict: ['error', 'never']
yoda: 'error'
'@typescript-eslint/no-shadow': 'error'
settings:
react:
version: detect