-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathimport.js
44 lines (44 loc) · 1.5 KB
/
import.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 = {
plugins: ['import'],
rules: {
'import/default': 'error',
'import/export': 'error',
'import/extensions': ['error', {js: 'never', json: 'always'}],
'import/exports-last': 'off',
'import/first': 'error',
'import/no-anonymous-default-export': 'off',
'import/max-dependencies': 'off',
'import/namespace': 'error',
'import/named': 'error',
'import/newline-after-import': 'warn',
'import/no-absolute-path': 'error',
'import/no-amd': 'error',
'@typescript-eslint/no-var-requires': 'error',
'import/no-deprecated': 'off',
'import/no-duplicates': 'error',
'import/no-dynamic-require': 'error',
'import/no-extraneous-dependencies': 'error',
'import/no-internal-modules': 'off',
'import/no-mutable-exports': 'error',
'import/no-named-as-default': 'error',
'import/no-named-as-default-member': 'error',
'import/no-named-default': 'warn',
'import/no-namespace': 'off',
'import/no-nodejs-modules': 'off',
'import/no-restricted-paths': 'off',
'import/no-unassigned-import': 'error',
'import/no-unresolved': 'error',
'import/no-webpack-loader-syntax': 'error',
'import/order': 'warn',
'import/prefer-default-export': 'off',
'import/unambiguous': 'off',
// disable simple-import-sort in favor of import/order
'simple-import-sort/imports': 'off',
'simple-import-sort/exports': 'off',
},
settings: {
'import/resolve': {
extensions: ['.js', '.jsx', '.json', '.ts', '.tsx'],
},
},
}