@liangmi/vp-config 0.1.0 → 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 +9 -7
  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",
@@ -68,7 +69,6 @@ const style = {
68
69
  "typescript/consistent-type-definitions": ["warn", "interface"],
69
70
  "typescript/consistent-indexed-object-style": ["warn", "record"],
70
71
  "eslint/func-names": ["warn", "never"],
71
- "id-length": ["warn", { checkGeneric: false }],
72
72
  "typescript/method-signature-style": ["warn", "property"],
73
73
  "unicorn/prefer-ternary": ["warn", "only-single-line"],
74
74
  "import/exports-last": "off",
@@ -92,14 +92,14 @@ const style = {
92
92
  "import/prefer-default-export": "off",
93
93
  "prefer-await-to-then": "off",
94
94
  "unicorn/no-null": "off",
95
- "eslint/prefer-named-capture-group": "off"
95
+ "prefer-named-capture-group": "off",
96
+ "id-length": "off",
97
+ "promise/avoid-new": "off"
96
98
  };
97
99
  const restriction = {
98
100
  "oxc/bad-bitwise-operator": "error",
99
101
  "class-methods-use-this": "error",
100
102
  "default-case": "error",
101
- "typescript/explicit-function-return-type": "error",
102
- "typescript/explicit-module-boundary-types": "error",
103
103
  "import/extensions": [
104
104
  "error",
105
105
  "always",
@@ -116,7 +116,6 @@ const restriction = {
116
116
  "no-console": "error",
117
117
  "import/no-cycle": "error",
118
118
  "oxc/no-const-enum": "error",
119
- "typescript/no-dynamic-delete": "error",
120
119
  "no-dynamic-require": "error",
121
120
  "no-empty": "error",
122
121
  "no-empty-function": "error",
@@ -173,7 +172,6 @@ const pedantic = {
173
172
  "typescript/prefer-nullish-coalescing": "error",
174
173
  "typescript/prefer-promise-reject-errors": "error",
175
174
  "typescript/require-await": "error",
176
- "require-unicode-regexp": "error",
177
175
  "typescript/return-await": ["error", "never"],
178
176
  "unicorn/no-hex-escape": "warn",
179
177
  "unicorn/no-typeof-undefined": "warn",
@@ -232,6 +230,7 @@ const lintBase = {
232
230
  rules: {
233
231
  ...suspicious,
234
232
  ...nursery,
233
+ ...perf,
235
234
  ...restriction,
236
235
  ...pedantic,
237
236
  ...style,
@@ -339,7 +338,10 @@ const fmtWebsite = {
339
338
  //#region src/cli/index.ts
340
339
  const cliConfig = {
341
340
  fmt: fmtWebsite,
342
- 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
+ }] })),
343
345
  pack: {
344
346
  dts: false,
345
347
  minify: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liangmi/vp-config",
3
- "version": "0.1.0",
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": {