@liangmi/vp-config 0.3.2 → 0.5.0
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.d.mts
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as writeRuntimeInfo } from "./info-
|
|
1
|
+
import { c as writeRuntimeInfo } from "./info-DJqaJFGi.mjs";
|
|
2
2
|
import { defineConfig, mergeConfig } from "vite-plus";
|
|
3
3
|
//#region src/base/fmt.ts
|
|
4
4
|
const fmtBase = {
|
|
@@ -79,6 +79,7 @@ const style = {
|
|
|
79
79
|
"init-declarations": "off",
|
|
80
80
|
"import/no-anonymous-default-export": "off",
|
|
81
81
|
"unicorn/no-await-expression-member": "off",
|
|
82
|
+
"unicorn/explicit-timer-delay": "off",
|
|
82
83
|
"max-params": "off",
|
|
83
84
|
"max-statements": "off",
|
|
84
85
|
"no-continue": "off",
|
|
@@ -99,7 +100,8 @@ const style = {
|
|
|
99
100
|
"id-length": "off",
|
|
100
101
|
"promise/avoid-new": "off",
|
|
101
102
|
"eslint/new-cap": "off",
|
|
102
|
-
"eslint/no-template-curly-in-string": "off"
|
|
103
|
+
"eslint/no-template-curly-in-string": "off",
|
|
104
|
+
"eslint/one-var": "off"
|
|
103
105
|
};
|
|
104
106
|
const restriction = {
|
|
105
107
|
"oxc/bad-bitwise-operator": "error",
|
|
@@ -123,7 +125,6 @@ const restriction = {
|
|
|
123
125
|
"oxc/no-const-enum": "error",
|
|
124
126
|
"no-dynamic-require": "error",
|
|
125
127
|
"no-empty": "error",
|
|
126
|
-
"no-explicit-any": "error",
|
|
127
128
|
"no-implicit-globals": "error",
|
|
128
129
|
"typescript/no-import-type-side-effects": "error",
|
|
129
130
|
"typescript/no-invalid-void-type": "error",
|
|
@@ -272,6 +273,7 @@ const lintBase = {
|
|
|
272
273
|
"vitest/prefer-expect-assertions": "off",
|
|
273
274
|
"vitest/prefer-importing-vitest-globals": "off",
|
|
274
275
|
"vitest/no-importing-vitest-globals": "off",
|
|
276
|
+
"vitest/padding-around-test-blocks": "off",
|
|
275
277
|
"vitest/no-large-snapshots": "off",
|
|
276
278
|
"vitest/no-restricted-matchers": "off",
|
|
277
279
|
"vitest/no-restricted-vi-methods": "off"
|
|
@@ -68,7 +68,8 @@ function cleanupRuntimeInfo(configDirectory) {
|
|
|
68
68
|
function writeRuntimeInfoFile(configFile, input) {
|
|
69
69
|
if (!hasConfigPackageJson(configFile)) return;
|
|
70
70
|
const configDirectory = dirname(configFile);
|
|
71
|
-
const
|
|
71
|
+
const nodeModulesDirectory = join(configDirectory, "node_modules");
|
|
72
|
+
const createdNodeModules = !existsSync(nodeModulesDirectory);
|
|
72
73
|
const infoPath = getInfoPath(configDirectory);
|
|
73
74
|
rmSync(infoPath, { force: true });
|
|
74
75
|
mkdirSync(dirname(infoPath), { recursive: true });
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
//#region src/oxlint-plugin/constants.d.ts
|
|
2
|
+
declare const configNames: readonly ["base", "cli", "lib", "website"];
|
|
3
|
+
type ConfigName = (typeof configNames)[number];
|
|
4
|
+
//#endregion
|
|
3
5
|
//#region src/oxlint-plugin/project.d.ts
|
|
4
6
|
declare function getAllowedConfigNames(filename: string): readonly ConfigName[];
|
|
5
7
|
declare function isVpConfigImportAllowed(filename: string, importedNames: readonly string[]): boolean;
|
|
@@ -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-DJqaJFGi.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.5.0",
|
|
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,15 +25,16 @@
|
|
|
25
25
|
"access": "public"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@types/node": "^26.
|
|
29
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
30
|
-
"bumpp": "^
|
|
31
|
-
"typescript": "^
|
|
32
|
-
"vite
|
|
28
|
+
"@types/node": "^26.4.0",
|
|
29
|
+
"@typescript/native-preview": "7.0.0-dev.20260707.2",
|
|
30
|
+
"bumpp": "^12.2.2",
|
|
31
|
+
"typescript": "^7.0.2",
|
|
32
|
+
"vite": "npm:@voidzero-dev/vite-plus-core@0.3.0",
|
|
33
|
+
"vite-plus": "0.3.0"
|
|
33
34
|
},
|
|
34
35
|
"peerDependencies": {
|
|
35
36
|
"@oxlint/plugins": "1.61.0",
|
|
36
|
-
"vite-plus": "
|
|
37
|
+
"vite-plus": "0.3.0"
|
|
37
38
|
},
|
|
38
39
|
"scripts": {
|
|
39
40
|
"build": "vp run cpack",
|