-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
44 lines (41 loc) · 1.18 KB
/
.eslintrc.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
module.exports = {
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint/eslint-plugin', 'import', 'eslint-plugin-tsdoc'],
extends: ['plugin:@typescript-eslint/recommended', 'prettier'],
env: {
jest: true,
node: true
},
rules: {
'no-console': 'error',
'tsdoc/syntax': 'error',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'@typescript-eslint/no-dupe-class-members': ['error'],
'@typescript-eslint/no-useless-constructor': ['error'],
'@typescript-eslint/no-inferrable-types': ['off'],
'import/order': [
'error',
{
groups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'index', 'object']
}
],
'import/no-duplicates': ['off'],
'import/no-mutable-exports': ['error'],
'import/no-useless-path-segments': [
'error',
{
noUselessIndex: true
}
],
'import/no-self-import': ['error'],
'import/export': ['error'],
'import/no-deprecated': ['error']
},
settings: {
'import/extensions': ['.js', '.ts'],
'import/parsers': {
'@typescript-eslint/parser': ['.ts']
},
'import/internal-regex': '^@mockinho/'
}
}