-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathimport.js
executable file
·48 lines (48 loc) · 1.38 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
45
46
47
48
module.exports = {
env: {
es6: true,
},
parserOptions: {
sourceType: 'module',
ecmaVersion: 2017,
ecmaFeatures: {
experimentalObjectRestSpread: true,
},
},
plugins: [
'import',
],
rules: {
'import/no-unresolved': 'off',
'import/named': 'error',
'import/default': 'error',
'import/namespace': 'error',
'import/export': 'error',
'import/no-named-as-default': 'error',
'import/imports-first': 'error',
'import/no-duplicates': 'error',
'import/extensions': 'off',
'import/newline-after-import': 'error',
'import/no-amd': 'error',
'import/no-commonjs': 'off',
'import/no-deprecated': 'error',
'import/no-extraneous-dependencies': 'off',
'import/no-mutable-exports': 'error',
'import/no-named-as-default-member': 'error',
'import/no-namespace': 'off',
'import/no-nodejs-modules': 'off',
'import/no-restricted-paths': 'off',
'import/order': 'off',
'import/first': 'off',
'import/max-dependencies': 'off',
'import/no-absolute-path': 'off',
'import/no-anonymous-default-export': 'off',
'import/no-dynamic-require': 'off',
'import/no-internal-modules': 'off',
'import/no-named-default': 'off',
'import/no-unassigned-import': 'off',
'import/no-webpack-loader-syntax': 'off',
'import/prefer-default-export': 'off',
'import/unambiguous': 'off',
},
};