forked from graphql-kit/graphql-voyager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
41 lines (39 loc) · 1.36 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
parserOptions:
sourceType: script
env:
es2022: true
browser: true
extends:
- 'eslint:recommended'
overrides:
- files: '**/*.js'
env:
node: true
- files: ['**/*.ts', '**/*.tsx']
parser: '@typescript-eslint/parser'
parserOptions:
sourceType: module
project: ['tsconfig.json']
plugins: ['@typescript-eslint']
extends:
- 'plugin:@typescript-eslint/strict'
- 'plugin:@typescript-eslint/recommended'
- 'plugin:@typescript-eslint/recommended-requiring-type-checking'
rules:
'@typescript-eslint/consistent-indexed-object-style':
[error, index-signature]
# FIXME: remove below rules
'@typescript-eslint/no-var-requires': off
# FIXME: blocked by improper type checking should be fixed
# after we switch TSC in strict mode
'@typescript-eslint/no-explicit-any': off
'@typescript-eslint/dot-notation': off
'@typescript-eslint/no-dynamic-delete': off
'@typescript-eslint/restrict-plus-operands': off
'@typescript-eslint/no-unsafe-call': off
'@typescript-eslint/no-unsafe-return': off
'@typescript-eslint/no-unsafe-argument': off
'@typescript-eslint/no-unsafe-assignment': off
'@typescript-eslint/no-unsafe-member-access': off
'@typescript-eslint/no-unnecessary-condition': off
'@typescript-eslint/restrict-template-expressions': off