@frigear-nu/eslint-config 0.1.2 → 0.2.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/package.json +1 -1
- package/src/index.mjs +8 -0
package/package.json
CHANGED
package/src/index.mjs
CHANGED
|
@@ -9,4 +9,12 @@ export default createConfigForNuxt({
|
|
|
9
9
|
},
|
|
10
10
|
}, {
|
|
11
11
|
ignores: ['dist/**', '.nuxt/**', '.output/**', '.data/**', '.example/**', 'playground/**'],
|
|
12
|
+
}, {
|
|
13
|
+
// A module's runtime is installed in the host's `node_modules`, where Nuxt does not auto-import into the app code
|
|
14
|
+
// of a module (only of a layer), so it imports what it uses from `#imports` explicitly. Its server code is carved
|
|
15
|
+
// out of Nitro's auto-import exclude by `inlineModuleRuntime` (`@frigear-nu/module-kit`) instead.
|
|
16
|
+
name: 'frigear/module-runtime-imports',
|
|
17
|
+
files: ['src/runtime/**/*.{js,mjs,ts,vue}'],
|
|
18
|
+
ignores: ['src/runtime/server/**'],
|
|
19
|
+
rules: { 'no-undef': 'error' },
|
|
12
20
|
})
|