@liangmi/vp-config 0.1.1 → 0.1.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/README.md CHANGED
@@ -20,6 +20,17 @@ export default base({
20
20
  });
21
21
  ```
22
22
 
23
+ We provide a skill for agent to handle migrations automatically
24
+
25
+ ```bash
26
+ skills add liangmiQwQ/vp-config
27
+ ```
28
+
29
+ Here are some real-world examples using `@liangmi/vp-config`.
30
+
31
+ - `mo` is cli and tui tool to help you manage your opensource projects.
32
+ - `@liangmi/vp-config` uses itself to manage its own codebase.
33
+
23
34
  > [!WARNING]
24
35
  > Considering Vite+ is now still alpha, the internal API can be unstable and expected to change, please manage to use `@liangmi/vp-config` with the latest Vite+. If you found something that doesn't work expectedly, please [submit an issue](https://github.com/liangmiQwQ/vp-config/issues/new).
25
36
 
package/dist/index.mjs CHANGED
@@ -58,6 +58,7 @@ const suspicious = {
58
58
  "no-shadow": "off",
59
59
  "typescript/no-unsafe-type-assertion": "off"
60
60
  };
61
+ const perf = { "no-await-in-loop": "off" };
61
62
  const nursery = {
62
63
  "no-undef": "off",
63
64
  "import/named": "off",
@@ -93,14 +94,14 @@ const style = {
93
94
  "unicorn/no-null": "off",
94
95
  "prefer-named-capture-group": "off",
95
96
  "id-length": "off",
96
- "promise/avoid-new": "off"
97
+ "promise/avoid-new": "off",
98
+ "eslint/new-cap": "off",
99
+ "eslint/no-template-curly-in-string": "off"
97
100
  };
98
101
  const restriction = {
99
102
  "oxc/bad-bitwise-operator": "error",
100
103
  "class-methods-use-this": "error",
101
104
  "default-case": "error",
102
- "typescript/explicit-function-return-type": "error",
103
- "typescript/explicit-module-boundary-types": "error",
104
105
  "import/extensions": [
105
106
  "error",
106
107
  "always",
@@ -117,7 +118,6 @@ const restriction = {
117
118
  "no-console": "error",
118
119
  "import/no-cycle": "error",
119
120
  "oxc/no-const-enum": "error",
120
- "typescript/no-dynamic-delete": "error",
121
121
  "no-dynamic-require": "error",
122
122
  "no-empty": "error",
123
123
  "no-empty-function": "error",
@@ -174,7 +174,6 @@ const pedantic = {
174
174
  "typescript/prefer-nullish-coalescing": "error",
175
175
  "typescript/prefer-promise-reject-errors": "error",
176
176
  "typescript/require-await": "error",
177
- "require-unicode-regexp": "error",
178
177
  "typescript/return-await": ["error", "never"],
179
178
  "unicorn/no-hex-escape": "warn",
180
179
  "unicorn/no-typeof-undefined": "warn",
@@ -233,6 +232,7 @@ const lintBase = {
233
232
  rules: {
234
233
  ...suspicious,
235
234
  ...nursery,
235
+ ...perf,
236
236
  ...restriction,
237
237
  ...pedantic,
238
238
  ...style,
@@ -295,7 +295,11 @@ const lintBase = {
295
295
  };
296
296
  //#endregion
297
297
  //#region src/base/run.ts
298
- const lintInput = ["!node_modules/.vp-config/info.json", "index.html"];
298
+ const lintInput = [
299
+ { auto: true },
300
+ "!node_modules/.vp-config/info.json",
301
+ "index.html"
302
+ ];
299
303
  const runBase = {
300
304
  tasks: {
301
305
  cbuild: "vp build",
@@ -340,7 +344,10 @@ const fmtWebsite = {
340
344
  //#region src/cli/index.ts
341
345
  const cliConfig = {
342
346
  fmt: fmtWebsite,
343
- lint: mergeConfig(lintBase, mergeConfig(cliOverride, componentOverride)),
347
+ lint: mergeConfig(lintBase, mergeConfig(mergeConfig(cliOverride, componentOverride), { overrides: [{
348
+ rules: { "import/no-unassigned-import": "off" },
349
+ files: ["bin/**"]
350
+ }] })),
344
351
  pack: {
345
352
  dts: false,
346
353
  minify: true,
@@ -431,7 +438,9 @@ const websiteConfig = {
431
438
  "unicorn/prefer-query-selector": "warn",
432
439
  "prefer-dom-node-remove": "warn",
433
440
  "prefer-blob-reading-methods": "warn",
434
- "import/no-unassigned-import": ["error", { allow: ["**/*.css"] }]
441
+ "import/no-unassigned-import": ["error", { allow: ["**/*.css"] }],
442
+ "import/no-default-export": "off",
443
+ "unicorn/filename-case": "off"
435
444
  }
436
445
  }),
437
446
  run: runBase,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liangmi/vp-config",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Liang's JavaScript development toolchain config with Vite+.",
5
5
  "homepage": "https://github.com/liangmiQwQ/vp-config#readme",
6
6
  "bugs": {