@coderwyd/eslint-config 2.7.2 → 2.7.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/dist/cli.cjs CHANGED
@@ -37,24 +37,24 @@ var import_helpers = require("yargs/helpers");
37
37
  var import_picocolors = __toESM(require("picocolors"), 1);
38
38
 
39
39
  // package.json
40
- var version = "2.7.2";
40
+ var version = "2.7.3";
41
41
  var devDependencies = {
42
42
  "@antfu/ni": "^0.23.0",
43
- "@eslint-react/eslint-plugin": "^1.14.1",
43
+ "@eslint-react/eslint-plugin": "^1.14.2",
44
44
  "@eslint/config-inspector": "^0.5.4",
45
45
  "@stylistic/eslint-plugin-migrate": "^2.8.0",
46
46
  "@types/fs-extra": "^11.0.4",
47
- "@types/node": "^22.5.4",
47
+ "@types/node": "^22.6.1",
48
48
  "@types/prompts": "^2.4.9",
49
49
  "@types/yargs": "^17.0.33",
50
- "@unocss/eslint-plugin": "^0.62.3",
50
+ "@unocss/eslint-plugin": "^0.62.4",
51
51
  bumpp: "^9.5.2",
52
- eslint: "^9.10.0",
52
+ eslint: "^9.11.1",
53
53
  "eslint-plugin-react-hooks": "^4.6.2",
54
- "eslint-plugin-react-refresh": "^0.4.11",
54
+ "eslint-plugin-react-refresh": "^0.4.12",
55
55
  "eslint-plugin-svelte": "2.43.0",
56
56
  "eslint-plugin-tailwindcss": "^3.17.4",
57
- execa: "^9.3.1",
57
+ execa: "^9.4.0",
58
58
  "fast-glob": "^3.3.2",
59
59
  "fs-extra": "^11.2.0",
60
60
  jiti: "^1.21.6",
@@ -62,8 +62,8 @@ var devDependencies = {
62
62
  rimraf: "^6.0.1",
63
63
  "simple-git-hooks": "^2.11.1",
64
64
  svelte: "^4.2.19",
65
- "svelte-eslint-parser": "^0.41.0",
66
- tsup: "^8.2.4",
65
+ "svelte-eslint-parser": "^0.41.1",
66
+ tsup: "^8.3.0",
67
67
  tsx: "^4.19.1",
68
68
  typescript: "^5.6.2"
69
69
  };
package/dist/cli.js CHANGED
@@ -8,24 +8,24 @@ import { hideBin } from "yargs/helpers";
8
8
  import c from "picocolors";
9
9
 
10
10
  // package.json
11
- var version = "2.7.2";
11
+ var version = "2.7.3";
12
12
  var devDependencies = {
13
13
  "@antfu/ni": "^0.23.0",
14
- "@eslint-react/eslint-plugin": "^1.14.1",
14
+ "@eslint-react/eslint-plugin": "^1.14.2",
15
15
  "@eslint/config-inspector": "^0.5.4",
16
16
  "@stylistic/eslint-plugin-migrate": "^2.8.0",
17
17
  "@types/fs-extra": "^11.0.4",
18
- "@types/node": "^22.5.4",
18
+ "@types/node": "^22.6.1",
19
19
  "@types/prompts": "^2.4.9",
20
20
  "@types/yargs": "^17.0.33",
21
- "@unocss/eslint-plugin": "^0.62.3",
21
+ "@unocss/eslint-plugin": "^0.62.4",
22
22
  bumpp: "^9.5.2",
23
- eslint: "^9.10.0",
23
+ eslint: "^9.11.1",
24
24
  "eslint-plugin-react-hooks": "^4.6.2",
25
- "eslint-plugin-react-refresh": "^0.4.11",
25
+ "eslint-plugin-react-refresh": "^0.4.12",
26
26
  "eslint-plugin-svelte": "2.43.0",
27
27
  "eslint-plugin-tailwindcss": "^3.17.4",
28
- execa: "^9.3.1",
28
+ execa: "^9.4.0",
29
29
  "fast-glob": "^3.3.2",
30
30
  "fs-extra": "^11.2.0",
31
31
  jiti: "^1.21.6",
@@ -33,8 +33,8 @@ var devDependencies = {
33
33
  rimraf: "^6.0.1",
34
34
  "simple-git-hooks": "^2.11.1",
35
35
  svelte: "^4.2.19",
36
- "svelte-eslint-parser": "^0.41.0",
37
- tsup: "^8.2.4",
36
+ "svelte-eslint-parser": "^0.41.1",
37
+ tsup: "^8.3.0",
38
38
  tsx: "^4.19.1",
39
39
  typescript: "^5.6.2"
40
40
  };
package/dist/index.cjs CHANGED
@@ -48,7 +48,7 @@ __export(src_exports, {
48
48
  });
49
49
  module.exports = __toCommonJS(src_exports);
50
50
 
51
- // node_modules/.pnpm/tsup@8.2.4_jiti@1.21.6_postcss@8.4.39_tsx@4.19.1_typescript@5.6.2_yaml@2.5.0/node_modules/tsup/assets/cjs_shims.js
51
+ // node_modules/.pnpm/tsup@8.3.0_jiti@1.21.6_postcss@8.4.39_tsx@4.19.1_typescript@5.6.2_yaml@2.5.0/node_modules/tsup/assets/cjs_shims.js
52
52
  var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
53
53
  var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
54
54
 
@@ -158,17 +158,19 @@ var GLOB_EXCLUDE = [
158
158
  function disables() {
159
159
  return [
160
160
  {
161
- files: [`scripts/${GLOB_SRC}`],
161
+ files: [`**/scripts/${GLOB_SRC}`],
162
162
  name: "coderwyd/disables/scripts",
163
163
  rules: {
164
+ "antfu/no-top-level-await": "off",
164
165
  "no-console": "off",
165
166
  "ts/explicit-function-return-type": "off"
166
167
  }
167
168
  },
168
169
  {
169
- files: [`cli/${GLOB_SRC}`, `cli.${GLOB_SRC_EXT}`],
170
+ files: [`**/cli/${GLOB_SRC}`, `**/cli.${GLOB_SRC_EXT}`],
170
171
  name: "coderwyd/disables/cli",
171
172
  rules: {
173
+ "antfu/no-top-level-await": "off",
172
174
  "no-console": "off"
173
175
  }
174
176
  },
@@ -194,6 +196,7 @@ function disables() {
194
196
  files: ["**/*.{test,spec}.([tj])s?(x)"],
195
197
  name: "coderwyd/disables/test",
196
198
  rules: {
199
+ "antfu/no-top-level-await": "off",
197
200
  "no-unused-expressions": "off"
198
201
  }
199
202
  },
@@ -549,6 +552,7 @@ function javascript(options = {}) {
549
552
  "error",
550
553
  { enforceForClassMembers: true, setWithoutGet: true }
551
554
  ],
555
+ "antfu/no-top-level-await": "error",
552
556
  "array-callback-return": "error",
553
557
  "block-scoped-var": "error",
554
558
  "constructor-super": "error",
@@ -1039,6 +1043,13 @@ async function react(options = {}) {
1039
1043
  allowConstantExport: isAllowConstantExport,
1040
1044
  allowExportNames: [
1041
1045
  ...isUsingNext ? [
1046
+ "dynamic",
1047
+ "dynamicParams",
1048
+ "revalidate",
1049
+ "fetchCache",
1050
+ "runtime",
1051
+ "preferredRegion",
1052
+ "maxDuration",
1042
1053
  "config",
1043
1054
  "generateStaticParams",
1044
1055
  "metadata",
@@ -1638,8 +1649,13 @@ async function typescript(options = {}) {
1638
1649
  "ts/no-import-type-side-effects": "error",
1639
1650
  "ts/no-invalid-void-type": "off",
1640
1651
  "ts/no-non-null-assertion": "off",
1641
- "ts/no-redeclare": "error",
1652
+ "ts/no-redeclare": ["error", { builtinGlobals: false }],
1642
1653
  "ts/no-require-imports": "error",
1654
+ "ts/no-unused-expressions": ["error", {
1655
+ allowShortCircuit: true,
1656
+ allowTaggedTemplates: true,
1657
+ allowTernary: true
1658
+ }],
1643
1659
  "ts/no-unused-vars": "off",
1644
1660
  "ts/no-use-before-define": [
1645
1661
  "error",
@@ -1847,7 +1863,9 @@ async function vue(options = {}) {
1847
1863
  rules: {
1848
1864
  ...pluginVue.configs.base.rules,
1849
1865
  ...vueRules,
1866
+ "antfu/no-top-level-await": "off",
1850
1867
  "node/prefer-global/process": "off",
1868
+ "ts/explicit-function-return-type": "off",
1851
1869
  "vue/block-order": [
1852
1870
  "error",
1853
1871
  {