@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.mjs +8 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frigear-nu/eslint-config",
3
- "version": "0.1.2",
3
+ "version": "0.2.0",
4
4
  "description": "Shared ESLint flat config for Frigear packages and Nuxt apps.",
5
5
  "homepage": "https://docs.frigear.dev/packages/eslint-config",
6
6
  "repository": {
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
  })