@dword-design/base-config-nuxt-module 1.0.2 → 1.0.3

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/dist/index.js +6 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -4,6 +4,7 @@ import packageName from 'depcheck-package-name';
4
4
  import loadPkg from 'load-pkg';
5
5
  export default config => {
6
6
  const packageConfig = loadPkg.sync();
7
+ const virtualImports = ['#imports', ...(config.virtualImports ?? [])];
7
8
  return {
8
9
  ...nodeConfig(config),
9
10
  eslintConfig: dedent`
@@ -13,6 +14,11 @@ export default config => {
13
14
  export default createConfigForNuxt({ features: { standalone: false } })
14
15
  .prepend(
15
16
  config,
17
+ {
18
+ rules: {
19
+ 'import/no-unresolved': ["error", { ignore: [${virtualImports.map(_import => `'${_import}'`).join(', ')}] }],
20
+ },
21
+ },
16
22
  {
17
23
  files: ['eslint.config.js'],
18
24
  rules: { 'import/no-extraneous-dependencies': 'off' },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dword-design/base-config-nuxt-module",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "repository": "dword-design/base-config-nuxt-module",
5
5
  "funding": "https://github.com/sponsors/dword-design",
6
6
  "license": "MIT",