@aiou/eslint-config 1.2.3 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +7 -2
- package/dist/index.mjs +7 -2
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -100,8 +100,8 @@ const imports = () => {
|
|
|
100
100
|
// Absolute imports and other imports such as `@/foo` or `~/foo`.
|
|
101
101
|
// Anything not matched in another group.
|
|
102
102
|
["^", "^\\.", "^@/\\w", "^~/\\w"],
|
|
103
|
-
// Virtual modules prefixed with `virtual
|
|
104
|
-
["^virtual:"],
|
|
103
|
+
// Virtual modules prefixed with `virtual:` or `virtual-`, rollup & vite favor
|
|
104
|
+
["^virtual:", "^virtual-"],
|
|
105
105
|
// Types
|
|
106
106
|
["^[^/\\.].*\0$", "^\\..*\0$"]
|
|
107
107
|
]
|
|
@@ -114,6 +114,9 @@ const imports = () => {
|
|
|
114
114
|
"import/no-mutable-exports": "error",
|
|
115
115
|
"import/no-unresolved": "off",
|
|
116
116
|
"import/no-absolute-path": "off",
|
|
117
|
+
"import/dynamic-import-chunkname": [2, {
|
|
118
|
+
allowEmpty: true
|
|
119
|
+
}],
|
|
117
120
|
// Not allowed import devDependencies
|
|
118
121
|
"import/no-extraneous-dependencies": ["error", { devDependencies: false }],
|
|
119
122
|
// Not allow import { default as named }
|
|
@@ -157,6 +160,8 @@ const imports = () => {
|
|
|
157
160
|
`**/App*.${GLOB_SCRIPT_EXT}`,
|
|
158
161
|
`**/Document.${GLOB_SCRIPT_EXT}`,
|
|
159
162
|
"**/{vite,esbuild,rollup,webpack,rspack}.ts",
|
|
163
|
+
// Allow default export in page and route file
|
|
164
|
+
`**/{page,route}.${GLOB_SCRIPT_EXT}`,
|
|
160
165
|
GLOB_DTS,
|
|
161
166
|
GLOB_TEST_SCRIPT,
|
|
162
167
|
GLOB_TEST_DIRS
|
package/dist/index.mjs
CHANGED
|
@@ -98,8 +98,8 @@ const imports = () => {
|
|
|
98
98
|
// Absolute imports and other imports such as `@/foo` or `~/foo`.
|
|
99
99
|
// Anything not matched in another group.
|
|
100
100
|
["^", "^\\.", "^@/\\w", "^~/\\w"],
|
|
101
|
-
// Virtual modules prefixed with `virtual
|
|
102
|
-
["^virtual:"],
|
|
101
|
+
// Virtual modules prefixed with `virtual:` or `virtual-`, rollup & vite favor
|
|
102
|
+
["^virtual:", "^virtual-"],
|
|
103
103
|
// Types
|
|
104
104
|
["^[^/\\.].*\0$", "^\\..*\0$"]
|
|
105
105
|
]
|
|
@@ -112,6 +112,9 @@ const imports = () => {
|
|
|
112
112
|
"import/no-mutable-exports": "error",
|
|
113
113
|
"import/no-unresolved": "off",
|
|
114
114
|
"import/no-absolute-path": "off",
|
|
115
|
+
"import/dynamic-import-chunkname": [2, {
|
|
116
|
+
allowEmpty: true
|
|
117
|
+
}],
|
|
115
118
|
// Not allowed import devDependencies
|
|
116
119
|
"import/no-extraneous-dependencies": ["error", { devDependencies: false }],
|
|
117
120
|
// Not allow import { default as named }
|
|
@@ -155,6 +158,8 @@ const imports = () => {
|
|
|
155
158
|
`**/App*.${GLOB_SCRIPT_EXT}`,
|
|
156
159
|
`**/Document.${GLOB_SCRIPT_EXT}`,
|
|
157
160
|
"**/{vite,esbuild,rollup,webpack,rspack}.ts",
|
|
161
|
+
// Allow default export in page and route file
|
|
162
|
+
`**/{page,route}.${GLOB_SCRIPT_EXT}`,
|
|
158
163
|
GLOB_DTS,
|
|
159
164
|
GLOB_TEST_SCRIPT,
|
|
160
165
|
GLOB_TEST_DIRS
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aiou/eslint-config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "eslint config for aiou template",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"eslint-define-config": "^2.0.0",
|
|
37
37
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
38
38
|
"eslint-plugin-etc": "^2.0.3",
|
|
39
|
-
"eslint-plugin-i": "^2.
|
|
39
|
+
"eslint-plugin-i": "^2.29.1",
|
|
40
40
|
"eslint-plugin-import-newlines": "^1.3.0",
|
|
41
41
|
"eslint-plugin-jsonc": "^2.5.0",
|
|
42
42
|
"eslint-plugin-markdown": "^3.0.0",
|