forked from linode/apl-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
92 lines (86 loc) · 2.41 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
---
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
- plugin:import/recommended
- plugin:import/errors
- plugin:import/warnings
- plugin:import/typescript
- plugin:prettier/recommended
- prettier
plugins:
- import
- prettier
- unused-imports
- '@typescript-eslint'
settings:
import/resolver:
node:
extensions: [.js, .ts]
paths: [src]
typescript: {}
env:
es6: true
jest: true
node: true
rules:
'@typescript-eslint/ban-ts-comment': off
'@typescript-eslint/explicit-function-return-type': off
'@typescript-eslint/member-delimiter-style': off
'@typescript-eslint/no-explicit-any': off
'@typescript-eslint/no-floating-promises': warn
'@typescript-eslint/no-non-null-assertion': off
'@typescript-eslint/no-shadow':
- error
- allow:
- deps
- secrets
- values
'@typescript-eslint/no-unsafe-argument': warn
'@typescript-eslint/no-unsafe-assignment': off
'@typescript-eslint/no-unsafe-call': off
'@typescript-eslint/no-unsafe-member-access': off
'@typescript-eslint/no-unsafe-return': off
'@typescript-eslint/no-unused-vars': [warn, { varsIgnorePattern: ^(_|next) }]
'@typescript-eslint/no-use-before-define': off
'@typescript-eslint/restrict-template-expressions': off
# '@typescript-eslint/camelcase': warn
# '@typescript-eslint/explicit-module-boundary-types': off
# disabled until https://github.com/typescript-eslint/typescript-eslint/issues/2077#issuecomment-634811363:
# this next line is disabling all the warnings about non typed stuff:
func-names: 'off'
import/no-commonjs: error
import/no-extraneous-dependencies: off
import/extensions: off
import/prefer-default-export: off
eol-last:
- error
- always
func-style:
- off
- expression
no-console: 'off'
no-debugger: error
no-param-reassign:
- error
- props: true
ignorePropertyModificationsFor:
- memo
no-plusplus:
- 2
- allowForLoopAfterthoughts: true
no-shadow: 'off'
no-unused-vars: off
no-use-before-define: 'off'
no-underscore-dangle: off
object-shorthand: error
prefer-destructuring: warn
prefer-template: error
unused-imports/no-unused-imports-ts: error