-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
32 lines (32 loc) · 1.08 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
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2018,
souceType: 'module',
},
plugins: ['@typescript-eslint', 'import'],
extends: ['plugin:@typescript-eslint/recommended'],
rules: {
'max-len': ['error', 120],
'no-nested-ternary': 2,
camelcase: 2,
'import/no-extraneous-dependencies': ['error', { packageDir: __dirname }],
'import/extensions': ['error', 'never', { svg: 'always', middleware:"always" }],
'import/no-named-as-default-member': 2,
'import/order': ['error', { 'newlines-between': 'always' }],
'import/no-duplicates': 2,
'import/no-useless-path-segments': 2,
'import/no-cycle': 2,
'import/prefer-default-export': 0,
'import/no-anonymous-default-export': 0,
'import/named': 0,
'import/namespace': 0,
'import/default': 0,
'import/no-named-as-default-member': 0,
'import/no-named-as-default': 0,
'import/no-cycle': 0,
'import/no-unused-modules': 0,
'import/no-anonymous-default-export': 2,
'@typescript-eslint/explicit-module-boundary-types': 0,
},
};