@liangmi/vp-config 0.3.0 → 0.3.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.
Files changed (2) hide show
  1. package/dist/index.mjs +17 -22
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -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",
@@ -302,27 +303,21 @@ const lintInput = [
302
303
  "!**/node_modules/.vp-config/info.json",
303
304
  "index.html"
304
305
  ];
305
- const runBase = {
306
- tasks: {
307
- cbuild: "vp build",
308
- ccheck: {
309
- command: "vp check",
310
- input: lintInput
311
- },
312
- cfmt: "vp fmt",
313
- cformat: "vp format",
314
- clint: {
315
- command: "vp lint",
316
- input: lintInput
317
- },
318
- cpack: "vp pack",
319
- ctest: "vp test"
306
+ const runBase = { tasks: {
307
+ cbuild: "vp build",
308
+ ccheck: {
309
+ command: "vp check",
310
+ input: lintInput
320
311
  },
321
- cache: {
322
- scripts: false,
323
- tasks: true
324
- }
325
- };
312
+ cfmt: "vp fmt",
313
+ cformat: "vp format",
314
+ clint: {
315
+ command: "vp lint",
316
+ input: lintInput
317
+ },
318
+ cpack: "vp pack",
319
+ ctest: "vp test"
320
+ } };
326
321
  //#endregion
327
322
  //#region src/base/staged.ts
328
323
  const stagedBase = { "*": "vp check --fix" };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liangmi/vp-config",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "Liang's JavaScript development toolchain config with Vite+.",
5
5
  "homepage": "https://github.com/liangmiQwQ/vp-config#readme",
6
6
  "bugs": {