@seayoo-web/scripts 1.0.2 → 1.0.4

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/dist/index.js CHANGED
@@ -14,6 +14,8 @@ import { Command } from "commander";
14
14
  import inquirer from "inquirer";
15
15
  import ora from "ora";
16
16
  import skipFormatting from "@vue/eslint-config-prettier/skip-formatting";
17
+ import { vueTsConfigs } from "@vue/eslint-config-typescript";
18
+ import { defineConfigWithVueTs } from "@vue/eslint-config-typescript";
17
19
  import { flatConfigs } from "eslint-plugin-import";
18
20
  import pluginVue from "eslint-plugin-vue";
19
21
  function defineLibBuildConfig(option) {
@@ -659,7 +661,8 @@ async function destroyRepo() {
659
661
  }
660
662
  program.action(startCreateJob);
661
663
  const vueConfig = [
662
- ...pluginVue.configs["flat/essential"],
664
+ pluginVue.configs["flat/essential"],
665
+ vueTsConfigs.recommended,
663
666
  skipFormatting,
664
667
  {
665
668
  files: ["**/*.vue"],
@@ -669,7 +672,7 @@ const vueConfig = [
669
672
  }
670
673
  ];
671
674
  const importConfig = [
672
- flatConfigs,
675
+ flatConfigs.recommended,
673
676
  {
674
677
  rules: {
675
678
  "import/no-unresolved": "off",
@@ -701,6 +704,7 @@ const importConfig = [
701
704
  export {
702
705
  EnvPrefix,
703
706
  checkCommit,
707
+ defineConfigWithVueTs,
704
708
  defineLibBuildConfig,
705
709
  definePageBuildConfig,
706
710
  getBuildEnv,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seayoo-web/scripts",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "scripts for seayoo web monorepos",
5
5
  "type": "module",
6
6
  "source": "index.ts",
@@ -25,6 +25,7 @@
25
25
  "@vitejs/plugin-legacy": "^6.0.2",
26
26
  "@vitejs/plugin-vue": "^5.2.1",
27
27
  "@vue/eslint-config-prettier": "^10.2.0",
28
+ "@vue/eslint-config-typescript": "^14.3.0",
28
29
  "colors": "^1.4.0",
29
30
  "commander": "^13.1.0",
30
31
  "eslint-plugin-import": "^2.31.0",
@@ -1,8 +1,9 @@
1
1
  import { type TSESLint } from "@typescript-eslint/utils";
2
+ export { defineConfigWithVueTs } from "@vue/eslint-config-typescript";
2
3
  /**
3
4
  * vue eslint 规则
4
5
  */
5
- export declare const vueConfig: TSESLint.FlatConfig.Config[];
6
+ export declare const vueConfig: (TSESLint.FlatConfig.Config | TSESLint.FlatConfig.Config[])[];
6
7
  /**
7
8
  * import 规则,含排序配置
8
9
  */