@coderwyd/eslint-config 2.3.3 → 2.3.4

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
@@ -40,8 +40,6 @@ const { defineConfig } = require('@coderwyd/eslint-config')
40
40
  module.exports = defineConfig()
41
41
  ```
42
42
 
43
- > Note that `.eslintignore` no longer works in Flat config, see [customization](#customization) for more details.
44
-
45
43
  ### Add script for package.json
46
44
 
47
45
  For example:
package/dist/cli.cjs CHANGED
@@ -46,33 +46,33 @@ var import_parse_gitignore = __toESM(require("parse-gitignore"), 1);
46
46
  var import_picocolors = __toESM(require("picocolors"), 1);
47
47
 
48
48
  // package.json
49
- var version = "2.3.3";
49
+ var version = "2.3.4";
50
50
  var devDependencies = {
51
51
  "@antfu/ni": "^0.21.12",
52
- "@eslint/config-inspector": "^0.4.1",
53
- "@types/eslint": "^8.56.7",
52
+ "@eslint/config-inspector": "^0.4.6",
53
+ "@types/eslint": "^8.56.9",
54
54
  "@types/fs-extra": "^11.0.4",
55
- "@types/node": "^20.12.5",
55
+ "@types/node": "^20.12.7",
56
56
  "@types/prompts": "^2.4.9",
57
57
  "@types/yargs": "^17.0.32",
58
- "@unocss/eslint-plugin": "^0.59.0",
58
+ "@unocss/eslint-plugin": "^0.59.2",
59
59
  bumpp: "^9.4.0",
60
60
  eslint: "9.0.0",
61
61
  "eslint-plugin-react": "^7.34.1",
62
62
  "eslint-plugin-react-hooks": "^4.6.0",
63
63
  "eslint-plugin-react-refresh": "^0.4.6",
64
- "eslint-plugin-svelte": "2.36.0-next.13",
64
+ "eslint-plugin-svelte": "2.36.0",
65
65
  execa: "^8.0.1",
66
66
  "fast-glob": "^3.3.2",
67
67
  "fs-extra": "^11.2.0",
68
68
  "lint-staged": "^15.2.2",
69
69
  rimraf: "^5.0.5",
70
70
  "simple-git-hooks": "^2.11.1",
71
- svelte: "^4.2.12",
72
- "svelte-eslint-parser": "^0.33.1",
71
+ svelte: "^4.2.13",
72
+ "svelte-eslint-parser": "^0.34.1",
73
73
  tsup: "^8.0.2",
74
74
  tsx: "^4.7.2",
75
- typescript: "^5.4.4"
75
+ typescript: "^5.4.5"
76
76
  };
77
77
 
78
78
  // src/cli/constants.ts
package/dist/cli.js CHANGED
@@ -17,33 +17,33 @@ import parse from "parse-gitignore";
17
17
  import c from "picocolors";
18
18
 
19
19
  // package.json
20
- var version = "2.3.3";
20
+ var version = "2.3.4";
21
21
  var devDependencies = {
22
22
  "@antfu/ni": "^0.21.12",
23
- "@eslint/config-inspector": "^0.4.1",
24
- "@types/eslint": "^8.56.7",
23
+ "@eslint/config-inspector": "^0.4.6",
24
+ "@types/eslint": "^8.56.9",
25
25
  "@types/fs-extra": "^11.0.4",
26
- "@types/node": "^20.12.5",
26
+ "@types/node": "^20.12.7",
27
27
  "@types/prompts": "^2.4.9",
28
28
  "@types/yargs": "^17.0.32",
29
- "@unocss/eslint-plugin": "^0.59.0",
29
+ "@unocss/eslint-plugin": "^0.59.2",
30
30
  bumpp: "^9.4.0",
31
31
  eslint: "9.0.0",
32
32
  "eslint-plugin-react": "^7.34.1",
33
33
  "eslint-plugin-react-hooks": "^4.6.0",
34
34
  "eslint-plugin-react-refresh": "^0.4.6",
35
- "eslint-plugin-svelte": "2.36.0-next.13",
35
+ "eslint-plugin-svelte": "2.36.0",
36
36
  execa: "^8.0.1",
37
37
  "fast-glob": "^3.3.2",
38
38
  "fs-extra": "^11.2.0",
39
39
  "lint-staged": "^15.2.2",
40
40
  rimraf: "^5.0.5",
41
41
  "simple-git-hooks": "^2.11.1",
42
- svelte: "^4.2.12",
43
- "svelte-eslint-parser": "^0.33.1",
42
+ svelte: "^4.2.13",
43
+ "svelte-eslint-parser": "^0.34.1",
44
44
  tsup: "^8.0.2",
45
45
  tsx: "^4.7.2",
46
- typescript: "^5.4.4"
46
+ typescript: "^5.4.5"
47
47
  };
48
48
 
49
49
  // src/cli/constants.ts
package/dist/index.cjs CHANGED
@@ -438,6 +438,7 @@ async function javascript(options = {}) {
438
438
  {
439
439
  args: "after-used",
440
440
  argsIgnorePattern: "^_",
441
+ ignoreRestSiblings: true,
441
442
  vars: "all",
442
443
  varsIgnorePattern: "^_"
443
444
  }
@@ -1376,6 +1377,7 @@ async function vue(options = {}) {
1376
1377
  }
1377
1378
 
1378
1379
  // src/configs/test.ts
1380
+ var _pluginTest;
1379
1381
  async function test(options = {}) {
1380
1382
  const { files = GLOB_TESTS, isInEditor: isInEditor2 = false, overrides = {} } = options;
1381
1383
  const [pluginVitest, pluginNoOnlyTests] = await Promise.all([
@@ -1383,18 +1385,19 @@ async function test(options = {}) {
1383
1385
  // @ts-expect-error missing types
1384
1386
  interopDefault(import("eslint-plugin-no-only-tests"))
1385
1387
  ]);
1388
+ _pluginTest = _pluginTest || {
1389
+ ...pluginVitest,
1390
+ rules: {
1391
+ ...pluginVitest.rules,
1392
+ // extend `test/no-only-tests` rule
1393
+ ...pluginNoOnlyTests.rules
1394
+ }
1395
+ };
1386
1396
  return [
1387
1397
  {
1388
1398
  name: "coderwyd/test/setup",
1389
1399
  plugins: {
1390
- test: {
1391
- ...pluginVitest,
1392
- rules: {
1393
- ...pluginVitest.rules,
1394
- // extend `test/no-only-tests` rule
1395
- ...pluginNoOnlyTests.rules
1396
- }
1397
- }
1400
+ test: _pluginTest
1398
1401
  }
1399
1402
  },
1400
1403
  {
@@ -1667,7 +1670,7 @@ async function svelte(options = {}) {
1667
1670
  caughtErrors: "none",
1668
1671
  ignoreRestSiblings: true,
1669
1672
  vars: "all",
1670
- varsIgnorePattern: "^\\$\\$Props$"
1673
+ varsIgnorePattern: "^(\\$\\$Props$|\\$\\$Events$|\\$\\$Slots$)"
1671
1674
  }
1672
1675
  ],
1673
1676
  "svelte/comment-directive": "error",
@@ -1697,7 +1700,7 @@ async function svelte(options = {}) {
1697
1700
  args: "after-used",
1698
1701
  argsIgnorePattern: "^_",
1699
1702
  vars: "all",
1700
- varsIgnorePattern: "^(_|\\$\\$Props$)"
1703
+ varsIgnorePattern: "^(_|\\$\\$Props$|\\$\\$Events$|\\$\\$Slots$)"
1701
1704
  }
1702
1705
  ],
1703
1706
  ...{