@seayoo-web/scripts 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.
- package/dist/index.js +3 -1
- package/package.json +2 -1
- package/types/src/eslint.d.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -14,6 +14,7 @@ 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";
|
|
17
18
|
import { flatConfigs } from "eslint-plugin-import";
|
|
18
19
|
import pluginVue from "eslint-plugin-vue";
|
|
19
20
|
function defineLibBuildConfig(option) {
|
|
@@ -659,7 +660,8 @@ async function destroyRepo() {
|
|
|
659
660
|
}
|
|
660
661
|
program.action(startCreateJob);
|
|
661
662
|
const vueConfig = [
|
|
662
|
-
|
|
663
|
+
pluginVue.configs["flat/essential"],
|
|
664
|
+
vueTsConfigs.recommended,
|
|
663
665
|
skipFormatting,
|
|
664
666
|
{
|
|
665
667
|
files: ["**/*.vue"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seayoo-web/scripts",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
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",
|
package/types/src/eslint.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { type TSESLint } from "@typescript-eslint/utils";
|
|
|
2
2
|
/**
|
|
3
3
|
* vue eslint 规则
|
|
4
4
|
*/
|
|
5
|
-
export declare const vueConfig: TSESLint.FlatConfig.Config[];
|
|
5
|
+
export declare const vueConfig: (TSESLint.FlatConfig.Config | TSESLint.FlatConfig.Config[])[];
|
|
6
6
|
/**
|
|
7
7
|
* import 规则,含排序配置
|
|
8
8
|
*/
|