-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.yml
86 lines (86 loc) · 1.68 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
---
env:
browser: true
es2021: true
extends:
- airbnb-base
- plugin:@typescript-eslint/recommended
- plugin:import/errors
- plugin:import/typescript
- plugin:import/warnings
- plugin:sonarjs/recommended
- plugin:typescript-sort-keys/recommended
parser: '@typescript-eslint/parser'
parserOptions:
ecmaVersion: 12
sourceType: module
plugins:
- '@typescript-eslint'
- align-assignments
- align-import
- import
- json-files
- 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
camelcase:
- warn
- ignoreImports: true
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:
- 2
- code: 100
ignoreComments: true
ignoreUrls: true
no-underscore-dangle: off
no-multi-spaces:
- off
- exceptions:
ImportDeclaration: true
Property: true
VariableDeclarator: true
no-shadow: 0
no-use-before-define: 0
no-param-reassign: warn
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