-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathindex.js
58 lines (58 loc) · 1.49 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
49
50
51
52
53
54
55
56
57
58
module.exports = {
extends: [
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:n/recommended',
'plugin:import/recommended',
'plugin:import/typescript',
'plugin:perfectionist/recommended-natural',
],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'import'],
rules: {
'@typescript-eslint/no-unused-vars': [
'error',
{
argsIgnorePattern: '^_',
},
],
'@typescript-eslint/no-useless-constructor': 'error',
'@typescript-eslint/no-var-requires': 'off',
'import/no-unresolved': 'error',
'n/no-missing-import': 'off',
'n/no-unsupported-features/es-syntax': 'off',
'no-unused-expressions': 'off',
'no-useless-constructor': 'off',
'perfectionist/sort-classes': [
'error',
{
groups: [
'index-signature',
'static-property',
'property',
'private-property',
'constructor',
'static-method',
'static-private-method',
['get-method', 'set-method'],
'method',
'private-method',
'unknown',
],
order: 'asc',
type: 'alphabetical',
},
],
'valid-jsdoc': ['warn', {requireParamType: false, requireReturnType: false}],
},
settings: {
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.tsx'],
},
'import/resolver': {
typescript: {
alwaysTryTypes: true,
},
},
},
}