@aiou/eslint-config 1.2.3 → 1.3.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 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:`, rollup & vite favor
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
  ]
@@ -157,6 +157,8 @@ const imports = () => {
157
157
  `**/App*.${GLOB_SCRIPT_EXT}`,
158
158
  `**/Document.${GLOB_SCRIPT_EXT}`,
159
159
  "**/{vite,esbuild,rollup,webpack,rspack}.ts",
160
+ // Allow default export in page and route file
161
+ `**/{page,route}.${GLOB_SCRIPT_EXT}`,
160
162
  GLOB_DTS,
161
163
  GLOB_TEST_SCRIPT,
162
164
  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:`, rollup & vite favor
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
  ]
@@ -155,6 +155,8 @@ const imports = () => {
155
155
  `**/App*.${GLOB_SCRIPT_EXT}`,
156
156
  `**/Document.${GLOB_SCRIPT_EXT}`,
157
157
  "**/{vite,esbuild,rollup,webpack,rspack}.ts",
158
+ // Allow default export in page and route file
159
+ `**/{page,route}.${GLOB_SCRIPT_EXT}`,
158
160
  GLOB_DTS,
159
161
  GLOB_TEST_SCRIPT,
160
162
  GLOB_TEST_DIRS
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiou/eslint-config",
3
- "version": "1.2.3",
3
+ "version": "1.3.0",
4
4
  "description": "eslint config for aiou template",
5
5
  "keywords": [],
6
6
  "license": "MIT",