-
Notifications
You must be signed in to change notification settings - Fork 8
/
.eslintrc.yml
75 lines (69 loc) · 2.08 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
---
root: true
parser: '@typescript-eslint/parser'
parserOptions:
project: ['./tsconfig.json']
ecmaVersion: 2021
extends:
- eslint:recommended
- plugin:@typescript-eslint/eslint-recommended
- plugin:@typescript-eslint/recommended
- plugin:@typescript-eslint/recommended-requiring-type-checking
- airbnb-base
- plugin:prettier/recommended
- prettier
- plugin:import/recommended
- plugin:import/errors
- plugin:import/warnings
- plugin:import/typescript
- plugin:chai-friendly/recommended
plugins:
- import
- prettier
- '@typescript-eslint'
settings:
import/resolver:
node:
extensions: ['.ts']
env:
es6: true
mocha: true
node: true
rules:
'@typescript-eslint/ban-ts-comment': off
# disabled until https://github.com/typescript-eslint/typescript-eslint/issues/2077#issuecomment-634811363:
# '@typescript-eslint/camelcase': warn
'@typescript-eslint/member-delimiter-style': off
'@typescript-eslint/no-explicit-any': off
'@typescript-eslint/explicit-function-return-type': off
'@typescript-eslint/no-unsafe-assignment': off
'@typescript-eslint/no-unsafe-member-access': off
'@typescript-eslint/no-unsafe-return': off
'@typescript-eslint/no-unused-vars': off
'@typescript-eslint/no-use-before-define': off
# this next line is disabling all the warnings about non typed stuff:
# '@typescript-eslint/explicit-module-boundary-types': off
'@typescript-eslint/restrict-template-expressions': off
'@typescript-eslint/no-unsafe-call': off
'@typescript-eslint/no-non-null-assertion': off
'@typescript-eslint/no-floating-promises': off
'@typescript-eslint/no-shadow': error
func-names: 'off'
import/no-extraneous-dependencies: off
import/extensions: off
import/prefer-default-export: off
eol-last: ['error', 'always']
no-shadow: 'off'
no-unused-vars: warn
prefer-destructuring: error
no-use-before-define: 'off'
no-console: 'off'
object-shorthand: error
no-debugger: error
no-param-reassign:
- error
- props: true
ignorePropertyModificationsFor: [memo]
no-plusplus:
- 2
- allowForLoopAfterthoughts: true