-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.yml
62 lines (61 loc) · 1.4 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
---
env:
browser: true
es2021: true
node: true
jest: true
extends:
- eslint:recommended
- plugin:@typescript-eslint/recommended
- plugin:jest/recommended
- plugin:import/errors
- plugin:import/warnings
- plugin:prettier/recommended
parser: '@typescript-eslint/parser'
parserOptions:
ecmaVersion: latest
sourceType: module
plugins:
- '@typescript-eslint'
- jest
- import
rules:
prettier/prettier: error
eqeqeq:
- error
- always
curly:
- error
- all
no-unused-vars: warn
no-redeclare: error
no-shadow: error
prefer-const: error
no-var: error
global-require: warn
handle-callback-err: warn
no-buffer-constructor: warn
no-new-require: warn
no-path-concat: warn
'@typescript-eslint/no-explicit-any': 'warn'
'import/order':
- 'error'
- groups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'index']
pathGroups:
- pattern: '**'
group: 'external'
position: 'before'
newlines-between: 'always'
alphabetize:
order: 'asc'
caseInsensitive: true
'consistent-return': 'error' # Enforces consistent return in functions extensions for JSX files
'no-unused-expressions': 'warn' # Avoid code that has no effect
overrides:
- files:
- '*.d.ts'
- '*.ts'
rules:
'no-unused-vars': 'off'
'@typescript-eslint/no-unused-vars': 'warn'
'prettier/prettier': 'off'