@liangmi/vp-config 0.2.0 → 0.3.1
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.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as writeRuntimeInfo } from "./info-
|
|
1
|
+
import { c as writeRuntimeInfo } from "./info-XwsgbUrs.mjs";
|
|
2
2
|
import { defineConfig, mergeConfig } from "vite-plus";
|
|
3
3
|
//#region src/base/fmt.ts
|
|
4
4
|
const fmtBase = {
|
|
@@ -18,7 +18,8 @@ const cliOverride = {
|
|
|
18
18
|
rules: {
|
|
19
19
|
"no-console": "off",
|
|
20
20
|
"unicorn/no-process-exit": "off",
|
|
21
|
-
"node/no-path-concat": "error"
|
|
21
|
+
"node/no-path-concat": "error",
|
|
22
|
+
"node/no-sync": ["error", { allowAtRootLevel: true }]
|
|
22
23
|
}
|
|
23
24
|
};
|
|
24
25
|
const componentOverride = {
|
|
@@ -72,6 +73,7 @@ const style = {
|
|
|
72
73
|
"eslint/func-names": ["warn", "never"],
|
|
73
74
|
"typescript/method-signature-style": ["warn", "property"],
|
|
74
75
|
"unicorn/prefer-ternary": ["warn", "only-single-line"],
|
|
76
|
+
"prefer-destructuring": ["warn", { array: false }],
|
|
75
77
|
"import/exports-last": "off",
|
|
76
78
|
"func-style": "off",
|
|
77
79
|
"init-declarations": "off",
|
|
@@ -121,7 +123,6 @@ const restriction = {
|
|
|
121
123
|
"oxc/no-const-enum": "error",
|
|
122
124
|
"no-dynamic-require": "error",
|
|
123
125
|
"no-empty": "error",
|
|
124
|
-
"no-empty-function": "error",
|
|
125
126
|
"no-explicit-any": "error",
|
|
126
127
|
"no-implicit-globals": "error",
|
|
127
128
|
"typescript/no-import-type-side-effects": "error",
|
|
@@ -299,7 +300,7 @@ const lintBase = {
|
|
|
299
300
|
//#region src/base/run.ts
|
|
300
301
|
const lintInput = [
|
|
301
302
|
{ auto: true },
|
|
302
|
-
"
|
|
303
|
+
"!**/node_modules/.vp-config/info.json",
|
|
303
304
|
"index.html"
|
|
304
305
|
];
|
|
305
306
|
const runBase = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as isProject, c as writeRuntimeInfo, d as projectConfigNames, f as rootConfigNames, i as isLibProject, l as packageName, n as ensureRuntimeInfo, o as isWebsiteProject, p as viteConfigNames, r as getInfoPath, s as readRuntimeInfo, t as cleanupRuntimeInfo, u as pluginName } from "../info-
|
|
1
|
+
import { a as isProject, c as writeRuntimeInfo, d as projectConfigNames, f as rootConfigNames, i as isLibProject, l as packageName, n as ensureRuntimeInfo, o as isWebsiteProject, p as viteConfigNames, r as getInfoPath, s as readRuntimeInfo, t as cleanupRuntimeInfo, u as pluginName } from "../info-XwsgbUrs.mjs";
|
|
2
2
|
import { existsSync } from "node:fs";
|
|
3
3
|
import { basename, dirname, join } from "node:path";
|
|
4
4
|
import { definePlugin, defineRule } from "@oxlint/plugins";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liangmi/vp-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Liang's JavaScript development toolchain config with Vite+.",
|
|
5
5
|
"homepage": "https://github.com/liangmiQwQ/vp-config#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"access": "public"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@types/node": "^26.
|
|
29
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
28
|
+
"@types/node": "^26.1.0",
|
|
29
|
+
"@typescript/native-preview": "7.0.0-dev.20260702.3",
|
|
30
30
|
"bumpp": "^11.1.0",
|
|
31
31
|
"typescript": "^6.0.3",
|
|
32
|
-
"vite-plus": "^0.2.
|
|
32
|
+
"vite-plus": "^0.2.2"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"@oxlint/plugins": "1.61.0",
|