@liangmi/vp-config 0.1.1 → 0.1.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 +6 -5
  2. package/package.json +1 -1
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",
@@ -99,8 +100,6 @@ const restriction = {
99
100
  "oxc/bad-bitwise-operator": "error",
100
101
  "class-methods-use-this": "error",
101
102
  "default-case": "error",
102
- "typescript/explicit-function-return-type": "error",
103
- "typescript/explicit-module-boundary-types": "error",
104
103
  "import/extensions": [
105
104
  "error",
106
105
  "always",
@@ -117,7 +116,6 @@ const restriction = {
117
116
  "no-console": "error",
118
117
  "import/no-cycle": "error",
119
118
  "oxc/no-const-enum": "error",
120
- "typescript/no-dynamic-delete": "error",
121
119
  "no-dynamic-require": "error",
122
120
  "no-empty": "error",
123
121
  "no-empty-function": "error",
@@ -174,7 +172,6 @@ const pedantic = {
174
172
  "typescript/prefer-nullish-coalescing": "error",
175
173
  "typescript/prefer-promise-reject-errors": "error",
176
174
  "typescript/require-await": "error",
177
- "require-unicode-regexp": "error",
178
175
  "typescript/return-await": ["error", "never"],
179
176
  "unicorn/no-hex-escape": "warn",
180
177
  "unicorn/no-typeof-undefined": "warn",
@@ -233,6 +230,7 @@ const lintBase = {
233
230
  rules: {
234
231
  ...suspicious,
235
232
  ...nursery,
233
+ ...perf,
236
234
  ...restriction,
237
235
  ...pedantic,
238
236
  ...style,
@@ -340,7 +338,10 @@ const fmtWebsite = {
340
338
  //#region src/cli/index.ts
341
339
  const cliConfig = {
342
340
  fmt: fmtWebsite,
343
- lint: mergeConfig(lintBase, mergeConfig(cliOverride, componentOverride)),
341
+ lint: mergeConfig(lintBase, mergeConfig(mergeConfig(cliOverride, componentOverride), { overrides: [{
342
+ rules: { "import/no-unassigned-import": "off" },
343
+ files: ["bin/**"]
344
+ }] })),
344
345
  pack: {
345
346
  dts: false,
346
347
  minify: true,
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.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": {