-
Notifications
You must be signed in to change notification settings - Fork 0
/
import.config.json
133 lines (133 loc) · 3.42 KB
/
import.config.json
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
{
"plugins": ["import"],
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".ts", ".jsx", ".tsx", ".vue", ".json"]
}
},
"import/extensions": [
".js",
".ts",
".jsx",
".tsx",
".vue"
],
"import/core-modules": ["electron", "pnpapi"],
"import/ignore": [
"node_modules",
"\\.(coffee|scss|sass|compas|css|less|hbs|svg|json)$"
]
},
"rules": {
"import/no-unresolved": ["error", { "commonjs": true, "amd": true, "caseSensitive": true }],
"import/named": "error",
"import/namespace": ["error", { "allowComputed": true }],
"import/default": "off",
"import/no-named-as-default": "error",
"import/no-named-as-default-member": "off",
"import/no-mutable-exports": "off",
"import/no-commonjs": "off",
"import/no-amd": "off",
"import/no-nodejs-modules": "off",
"import/no-namespace": "off",
"import/no-dynamic-require": "off",
"import/no-webpack-loader-syntax": "error",
"import/no-self-import": "error",
"import/no-restricted-paths": "off",
"import/no-duplicates": ["error", { "considerQueryString": true }],
"import/no-deprecated": "warn",
"import/no-extraneous-dependencies": ["error", {
"devDependencies": true,
"optionalDependencies": true,
"peerDependencies": true,
"bundledDependencies": true
}],
"import/no-absolute-path": "off",
"import/no-internal-modules": "off",
"import/no-named-default": "error",
"import/no-anonymous-default-export": ["warn", {
"allowArray": true,
"allowArrowFunction": true,
"allowAnonymousClass": false,
"allowAnonymousFunction": false,
"allowLiteral": true,
"allowObject": true
}],
"import/no-default-export": "off",
"import/no-named-export": "off",
"import/no-cycle": "off",
"import/no-useless-path-segments": ["warn", {
"noUselessIndex": true,
"commonjs": true
}],
"import/no-relative-parent-imports": "off",
"import/no-unused-modules": "off",
"import/group-exports": "off",
"import/exports-last": "off",
"import/export": "error",
"import/first": "warn",
"import/max-dependencies": "off",
"import/unambiguous": "off",
"import/extensions": ["warn",
"ignorePackages",
{
"js": "never",
"ts": "never",
"jsx": "never",
"tsx": "never",
"vue": "never"
}
],
"import/order": ["warn", {
"groups": ["builtin", "external", ["internal", "parent", "sibling", "index"], "unknown"],
"pathGroups": [
{
"pattern": "*.+(svg|png|jpeg|jpg|webp|gif|ico)*(?*)",
"patternOptions": {
"dot": true,
"nocomment": true,
"matchBase": true
},
"group": "unknown",
"position": "before"
},
{
"pattern": "*.+(css|sass|less|scss|pcss|styl)*(?*)",
"patternOptions": {
"dot": true,
"nocomment": true,
"matchBase": true
},
"group": "unknown",
"position": "after"
}
],
"pathGroupsExcludedImportTypes": ["builtin"],
"newlines-between": "always"
}],
"import/newline-after-import": "warn",
"import/prefer-default-export": "off",
"import/no-unassigned-import": "off",
"import/dynamic-import-chunkname": "off"
},
"overrides": [
{
"files": ["**/index.*"],
"rules": {
"import/no-anonymous-default-export": "off"
}
},
{
"files": ["src/**", "index.*"],
"rules": {
"import/no-extraneous-dependencies": ["error", {
"devDependencies": false,
"optionalDependencies": true,
"peerDependencies": true,
"bundledDependencies": true
}]
}
}
]
}