/
imports.js
159 lines (159 loc) · 3.27 KB
/
imports.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
module.exports = {
env: {
es6: true
},
parserOptions: {
ecmaVersion: 6,
sourceType: "module"
},
plugins: ["import"],
rules: {
"import/default": "error",
"import/dynamic-import-chunkname": [
"off",
{
importFunctions: [],
webpackChunknameFormat: "[0-9a-zA-Z-_/.]+"
}
],
"import/export": "error",
"import/exports-last": "error",
"import/extensions": ["error", "ignorePackages"],
"import/first": "error",
"import/group-exports": "off",
"import/max-dependencies": [
"error",
{
max: 10
}
],
"import/named": "error",
"import/namespace": "error",
"import/newline-after-import": "error",
"import/no-absolute-path": "error",
"import/no-amd": "error",
"import/no-anonymous-default-export": [
"off",
{
allowAnonymousClass: false,
allowAnonymousFunction: false,
allowArray: false,
allowArrowFunction: false,
allowLiteral: false,
allowObject: false
}
],
"import/no-commonjs": "error",
"import/no-cycle": [
"error",
{
maxDepth: Infinity
}
],
"import/no-default-export": "off",
"import/no-deprecated": "error",
"import/no-duplicates": "error",
"import/no-dynamic-require": "error",
"import/no-extraneous-dependencies": [
"error",
{
devDependencies: [
"test/**",
"tests/**",
"spec/**",
"**/__tests__/**",
"**/__mocks__/**",
"test.{js,jsx}",
"test-*.{js,jsx}",
"**/*{.,_}{test,spec}.{js,jsx}",
"**/jest.config.js",
"**/jest.setup.js",
"**/vue.config.js",
"**/webpack.config.js",
"**/webpack.config.*.js",
"**/rollup.config.js",
"**/rollup.config.*.js",
"**/gulpfile.js",
"**/gulpfile.*.js",
"**/Gruntfile{,.js}",
"**/protractor.conf.js",
"**/protractor.conf.*.js",
"**/karma.conf.js"
],
optionalDependencies: false
}
],
"import/no-internal-modules": [
"off",
{
allow: []
}
],
"import/no-mutable-exports": "error",
"import/no-named-as-default": "error",
"import/no-named-as-default-member": "error",
"import/no-named-default": "error",
"import/no-named-export": "off",
"import/no-namespace": "error",
"import/no-nodejs-modules": "off",
"import/no-relative-parent-imports": "off",
"import/no-restricted-paths": "off",
"import/no-self-import": "error",
"import/no-unassigned-import": "error",
"import/no-unresolved": [
"error",
{
caseSensitive: true,
commonjs: true
}
],
"import/no-unused-modules": [
"error",
{
ignoreExports: [`${process.cwd()}/index.js`, `${process.cwd()}/src/index.js`],
missingExports: true,
unusedExports: true
}
],
"import/no-useless-path-segments": [
"error",
{
commonjs: true
}
],
"import/no-webpack-loader-syntax": "error",
"import/order": [
"error",
{
groups: [
"builtin",
"external",
"parent",
"sibling",
"index"
],
"newlines-between": "always"
}
],
"import/prefer-default-export": "error",
"import/unambiguous": "off"
},
settings: {
"import/core-modules": [],
"import/extensions": [
".js",
".mjs",
".jsx"
],
"import/ignore": ["node_modules", "\\.(coffee|scss|css|less|hbs|svg|json)$"],
"import/resolver": {
node: {
extensions: [
".mjs",
".js",
".json"
]
}
}
}
};