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

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/LICENSE.md CHANGED
@@ -14,8 +14,17 @@ MIT License
14
14
 
15
15
  Copyright (c) <year> <copyright holders>
16
16
 
17
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
18
-
19
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
20
-
21
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
17
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
18
+ associated documentation files (the "Software"), to deal in the Software without restriction, including
19
+ without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
20
+ copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the
21
+ following conditions:
22
+
23
+ The above copyright notice and this permission notice shall be included in all copies or substantial
24
+ portions of the Software.
25
+
26
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
27
+ LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
28
+ EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
29
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
30
+ USE OR OTHER DEALINGS IN THE SOFTWARE.
package/dist/index.js CHANGED
@@ -1,10 +1,24 @@
1
1
  import nodeConfig from '@dword-design/base-config-node';
2
2
  import dedent from 'dedent';
3
+ import packageName from 'depcheck-package-name';
3
4
  import loadPkg from 'load-pkg';
4
- export default (config => {
5
+ export default config => {
5
6
  const packageConfig = loadPkg.sync();
6
7
  return {
7
8
  ...nodeConfig(config),
9
+ eslintConfig: dedent`
10
+ import { createConfigForNuxt } from '${packageName`@nuxt/eslint-config`}/flat';
11
+ import config from '@dword-design/eslint-config';
12
+
13
+ export default createConfigForNuxt({ features: { standalone: false } })
14
+ .prepend(
15
+ config,
16
+ {
17
+ files: ['eslint.config.js'],
18
+ rules: { 'import/no-extraneous-dependencies': 'off' },
19
+ },
20
+ );\n
21
+ `,
8
22
  readmeInstallString: dedent`
9
23
  ## Install
10
24
 
@@ -17,4 +31,4 @@ export default (config => {
17
31
  \`\`\`
18
32
  `
19
33
  };
20
- });
34
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dword-design/base-config-nuxt-module",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "repository": "dword-design/base-config-nuxt-module",
5
5
  "funding": "https://github.com/sponsors/dword-design",
6
6
  "license": "MIT",
@@ -22,13 +22,16 @@
22
22
  "test": "base test"
23
23
  },
24
24
  "dependencies": {
25
- "@dword-design/base-config-node": "^3.0.0",
26
- "dedent": "^1.5.1",
27
- "load-pkg": "npm:@dword-design/load-pkg"
25
+ "@dword-design/base-config-node": "^3.0.4",
26
+ "@nuxt/eslint-config": "^1.4.1",
27
+ "dedent": "^1.6.0",
28
+ "depcheck-package-name": "^3.0.1",
29
+ "load-pkg": "npm:@dword-design/load-pkg@^4.0.0"
28
30
  },
29
31
  "devDependencies": {
30
- "@dword-design/base": "^11.0.11"
32
+ "@dword-design/base": "^12.0.3"
31
33
  },
34
+ "packageManager": "pnpm@10.11.0+sha512.6540583f41cc5f628eb3d9773ecee802f4f9ef9923cc45b69890fb47991d4b092964694ec3a4f738a420c918a333062c8b925d312f42e4f0c263eb603551f977",
32
35
  "engines": {
33
36
  "node": ">=18"
34
37
  },