-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.yml
50 lines (47 loc) · 1.66 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
parser: '@typescript-eslint/parser'
plugins:
- '@typescript-eslint'
parserOptions:
ecmaVersion: 2018
sourceType: module
project:
- ./tsconfig.json
- ./test/tsconfig.json
extends:
- 'plugin:@typescript-eslint/recommended'
- 'plugin:@typescript-eslint/recommended-requiring-type-checking'
- 'plugin:jest/recommended'
- 'prettier'
rules:
'@typescript-eslint/explicit-member-accessibility': off
'@typescript-eslint/no-angle-bracket-type-assertion': off
'@typescript-eslint/no-parameter-properties': off
'@typescript-eslint/explicit-function-return-type': off
'@typescript-eslint/member-delimiter-style': off
'@typescript-eslint/no-inferrable-types': off
'@typescript-eslint/no-explicit-any': off
'@typescript-eslint/require-await': off
'@typescript-eslint/no-unused-vars':
- 'error'
- args: 'none'
'no-console':
- 'error'
'no-alert':
- 'error'
'no-eval':
- 'error'
'no-throw-literal':
- 'error'
# If @ts-ignore is being used, it's probably for a good reason.
# In one part of the code-base, it's used due to a bug in the TypeScript compiler.
# Therefore, it's turned off here.
'@typescript-eslint/ban-ts-comment': off
# Tests that ensure user-reported scenarios function correctly are defined in spec/github-issues
# These tests have their names generated by a function; this rule is unhappy with that.
'jest/valid-title': off
'@typescript-eslint/ban-types': off
'@typescript-eslint/no-unsafe-return': off
'@typescript-eslint/no-unsafe-assignment': off
'@typescript-eslint/no-unsafe-call': off
'@typescript-eslint/no-unsafe-member-access': off
'@typescript-eslint/explicit-module-boundary-types': off