-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
48 lines (48 loc) · 1.67 KB
/
index.js
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
module.exports = {
parser: '@typescript-eslint/parser',
extends: [
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
],
rules: {
'@typescript-eslint/consistent-type-imports': [1, { prefer: 'type-imports', disallowTypeAnnotations: true }],
'@typescript-eslint/member-ordering': 1,
'@typescript-eslint/no-require-imports': 1,
'@typescript-eslint/no-shadow': 1,
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 1,
'@typescript-eslint/no-unnecessary-condition': 1,
'@typescript-eslint/no-unnecessary-qualifier': 1,
'@typescript-eslint/no-unnecessary-type-arguments': 1,
'@typescript-eslint/no-unnecessary-type-assertion': 1,
'@typescript-eslint/no-unnecessary-type-constraint': 1,
'@typescript-eslint/no-unsafe-assignment': 0,
'@typescript-eslint/no-unsafe-call': 0,
'@typescript-eslint/no-unsafe-member-access': 0,
'@typescript-eslint/no-unused-vars': [2, { argsIgnorePattern: '^_.*' }],
'@typescript-eslint/no-use-before-define': 1,
'@typescript-eslint/no-useless-constructor': 1,
'@typescript-eslint/prefer-nullish-coalescing': 1,
'@typescript-eslint/prefer-optional-chain': 1,
'@typescript-eslint/quotes': [1, 'single', { avoidEscape: true }],
'import/prefer-default-export': 0,
'import/named': 0,
'jsdoc/no-defaults': 1,
'jsdoc/no-types': 1,
'no-shadow': 0,
'no-use-before-define': 0,
'no-useless-constructor': 0,
},
settings: {
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.tsx'],
},
jsdoc: {
mode: 'typescript',
tagNamePreference: {
param: 'param',
returns: 'returns',
},
},
},
};