@dword-design/base-config-nuxt 6.2.11 → 6.2.13

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.
@@ -1,6 +1,7 @@
1
1
  import { endent } from '@dword-design/functions';
2
2
  export default ({
3
- virtualImports = []
3
+ virtualImports = [],
4
+ ignore = []
4
5
  } = {}) => endent`
5
6
  import config from '@dword-design/eslint-config';
6
7
  import { globalIgnores } from 'eslint/config';
@@ -8,7 +9,7 @@ export default ({
8
9
  import withNuxt from './.nuxt/eslint.config.mjs';
9
10
 
10
11
  export default withNuxt(
11
- globalIgnores(['eslint.config.js']),
12
+ globalIgnores([${['eslint.config.js', ...ignore].map(pattern => `'${pattern}'`).join(', ')}]),
12
13
  config,
13
14
  ${virtualImports.length > 0 ? endent`
14
15
  {
package/dist/index.js CHANGED
@@ -64,4 +64,5 @@ export default function (config) {
64
64
  },
65
65
  useJobMatrix: true
66
66
  };
67
- }
67
+ }
68
+ export { default as getEslintConfig } from "./get-eslint-config.js";
package/dist/lint.js CHANGED
@@ -1,8 +1,6 @@
1
- import dotenv from '@dword-design/dotenv-json-extended';
2
1
  import { execaCommand } from 'execa';
3
2
  export default async function (options) {
4
3
  options = {
5
- env: {},
6
4
  log: process.env.NODE_ENV !== 'test',
7
5
  stderr: 'inherit',
8
6
  ...options
@@ -12,12 +10,6 @@ export default async function (options) {
12
10
  stdout: 'inherit'
13
11
  }),
14
12
  cwd: this.cwd,
15
- env: {
16
- ...dotenv.parse({
17
- cwd: this.cwd
18
- }),
19
- ...options.env
20
- },
21
13
  stderr: options.stderr
22
14
  });
23
15
  await execaCommand('stylelint --fix --allow-empty-input --ignore-path .gitignore **/*.{css,scss,vue}', {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dword-design/base-config-nuxt",
3
- "version": "6.2.11",
3
+ "version": "6.2.13",
4
4
  "repository": "dword-design/base-config-nuxt",
5
5
  "funding": "https://github.com/sponsors/dword-design",
6
6
  "license": "MIT",
@@ -56,7 +56,6 @@
56
56
  "@playwright/test": "^1.52.0",
57
57
  "axios": "^1.9.0",
58
58
  "depcheck": "^1.4.7",
59
- "expect": "^29.7.0",
60
59
  "get-port": "^7.1.0",
61
60
  "nuxt-dev-ready": "^3.0.0",
62
61
  "playwright": "^1.52.0",