-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
97 lines (97 loc) · 1.94 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
---
root: true
env:
browser: true
es2021: true
extends:
- plugin:@typescript-eslint/recommended
- plugin:import/errors
- plugin:import/typescript
- plugin:import/warnings
- plugin:jsx-a11y/recommended
- plugin:react/recommended
- plugin:sonarjs/recommended
- plugin:typescript-sort-keys/recommended
ignorePatterns:
- '*.stories.tsx'
overrides:
- files: '*.test.ts'
rules:
no-unused-expressions: 'off'
parser: '@typescript-eslint/parser'
parserOptions:
ecmaFeatures:
jsx: true
ecmaVersion: 12
sourceType: module
plugins:
- '@typescript-eslint'
- align-assignments
- align-import
- json-files
- jsx-a11y
- react
- react-hooks
- sonarjs
- sort-keys-fix
- typescript-sort-keys
rules:
'@typescript-eslint/brace-style':
- 2
- 1tbs
'@typescript-eslint/no-shadow':
- error
'@typescript-eslint/no-use-before-define': 1
align-assignments/align-assignments:
- 2
- requiresOnly: false
align-import/align-import:
- warn
brace-style: 0
curly: error
implicit-arrow-linebreak: 'off'
import/extensions: 0
import/no-cycle: 2
import/prefer-default-export: 'off'
json-files/sort-package-json: 1
key-spacing:
- error
- align: value
mode: strict
lines-between-class-members:
- error
- always
max-len:
- 1
- code: 100
no-multi-spaces:
- off
- exceptions:
ImportDeclaration: true
Property: true
VariableDeclarator: true
no-shadow: 0
no-use-before-define: 0
no-param-reassign: warn
react-hooks/exhaustive-deps: warn
react-hooks/rules-of-hooks: error
react/jsx-uses-react: 'off'
react/prop-types: 0
react/react-in-jsx-scope: 'off'
sort-keys:
- error
- asc
- caseSensitive: true
minKeys: 2
natural: false
sort-keys-fix/sort-keys-fix: warn
settings:
import/resolver:
node:
extensions:
- .ts
- .tsx
paths:
- ./src
react:
version: detect