@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/dist/index.js CHANGED
@@ -392,6 +392,7 @@ async function javascript(options = {}) {
392
392
  {
393
393
  args: "after-used",
394
394
  argsIgnorePattern: "^_",
395
+ ignoreRestSiblings: true,
395
396
  vars: "all",
396
397
  varsIgnorePattern: "^_"
397
398
  }
@@ -1330,6 +1331,7 @@ async function vue(options = {}) {
1330
1331
  }
1331
1332
 
1332
1333
  // src/configs/test.ts
1334
+ var _pluginTest;
1333
1335
  async function test(options = {}) {
1334
1336
  const { files = GLOB_TESTS, isInEditor: isInEditor2 = false, overrides = {} } = options;
1335
1337
  const [pluginVitest, pluginNoOnlyTests] = await Promise.all([
@@ -1337,18 +1339,19 @@ async function test(options = {}) {
1337
1339
  // @ts-expect-error missing types
1338
1340
  interopDefault(import("eslint-plugin-no-only-tests"))
1339
1341
  ]);
1342
+ _pluginTest = _pluginTest || {
1343
+ ...pluginVitest,
1344
+ rules: {
1345
+ ...pluginVitest.rules,
1346
+ // extend `test/no-only-tests` rule
1347
+ ...pluginNoOnlyTests.rules
1348
+ }
1349
+ };
1340
1350
  return [
1341
1351
  {
1342
1352
  name: "coderwyd/test/setup",
1343
1353
  plugins: {
1344
- test: {
1345
- ...pluginVitest,
1346
- rules: {
1347
- ...pluginVitest.rules,
1348
- // extend `test/no-only-tests` rule
1349
- ...pluginNoOnlyTests.rules
1350
- }
1351
- }
1354
+ test: _pluginTest
1352
1355
  }
1353
1356
  },
1354
1357
  {
@@ -1621,7 +1624,7 @@ async function svelte(options = {}) {
1621
1624
  caughtErrors: "none",
1622
1625
  ignoreRestSiblings: true,
1623
1626
  vars: "all",
1624
- varsIgnorePattern: "^\\$\\$Props$"
1627
+ varsIgnorePattern: "^(\\$\\$Props$|\\$\\$Events$|\\$\\$Slots$)"
1625
1628
  }
1626
1629
  ],
1627
1630
  "svelte/comment-directive": "error",
@@ -1651,7 +1654,7 @@ async function svelte(options = {}) {
1651
1654
  args: "after-used",
1652
1655
  argsIgnorePattern: "^_",
1653
1656
  vars: "all",
1654
- varsIgnorePattern: "^(_|\\$\\$Props$)"
1657
+ varsIgnorePattern: "^(_|\\$\\$Props$|\\$\\$Events$|\\$\\$Slots$)"
1655
1658
  }
1656
1659
  ],
1657
1660
  ...{
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@coderwyd/eslint-config",
3
3
  "type": "module",
4
- "version": "2.3.3",
4
+ "version": "2.3.4",
5
5
  "packageManager": "pnpm@8.15.6",
6
6
  "description": "Donny's ESLint config",
7
7
  "author": "Donny Wang <donny526@outlook.com> (https://github.com/coderwyd/)",
@@ -68,25 +68,25 @@
68
68
  "dependencies": {
69
69
  "@antfu/install-pkg": "^0.3.2",
70
70
  "@toml-tools/parser": "^1.0.0",
71
- "@typescript-eslint/eslint-plugin": "^7.5.0",
72
- "@typescript-eslint/parser": "^7.5.0",
71
+ "@typescript-eslint/eslint-plugin": "^7.6.0",
72
+ "@typescript-eslint/parser": "^7.6.0",
73
73
  "eslint-config-flat-gitignore": "^0.1.5",
74
74
  "eslint-config-prettier": "^9.1.0",
75
75
  "eslint-plugin-antfu": "^2.1.2",
76
76
  "eslint-plugin-eslint-comments": "^3.2.0",
77
77
  "eslint-plugin-import-x": "^0.5.0",
78
78
  "eslint-plugin-jsdoc": "^48.2.3",
79
- "eslint-plugin-jsonc": "^2.15.0",
80
- "eslint-plugin-n": "^16.6.2",
79
+ "eslint-plugin-jsonc": "^2.15.1",
80
+ "eslint-plugin-n": "^17.1.0",
81
81
  "eslint-plugin-no-only-tests": "^3.1.0",
82
82
  "eslint-plugin-perfectionist": "^2.8.0",
83
83
  "eslint-plugin-prettier": "^5.1.3",
84
84
  "eslint-plugin-tailwindcss": "^3.15.1",
85
85
  "eslint-plugin-unicorn": "^52.0.0",
86
86
  "eslint-plugin-unused-imports": "^3.1.0",
87
- "eslint-plugin-vitest": "^0.4.1",
88
- "eslint-plugin-vue": "^9.24.0",
89
- "eslint-typegen": "^0.2.0",
87
+ "eslint-plugin-vitest": "^0.5.1",
88
+ "eslint-plugin-vue": "^9.24.1",
89
+ "eslint-typegen": "^0.2.2",
90
90
  "globals": "^15.0.0",
91
91
  "jsonc-eslint-parser": "^2.4.0",
92
92
  "local-pkg": "^0.5.0",
@@ -100,30 +100,30 @@
100
100
  },
101
101
  "devDependencies": {
102
102
  "@antfu/ni": "^0.21.12",
103
- "@eslint/config-inspector": "^0.4.1",
104
- "@types/eslint": "^8.56.7",
103
+ "@eslint/config-inspector": "^0.4.6",
104
+ "@types/eslint": "^8.56.9",
105
105
  "@types/fs-extra": "^11.0.4",
106
- "@types/node": "^20.12.5",
106
+ "@types/node": "^20.12.7",
107
107
  "@types/prompts": "^2.4.9",
108
108
  "@types/yargs": "^17.0.32",
109
- "@unocss/eslint-plugin": "^0.59.0",
109
+ "@unocss/eslint-plugin": "^0.59.2",
110
110
  "bumpp": "^9.4.0",
111
111
  "eslint": "9.0.0",
112
112
  "eslint-plugin-react": "^7.34.1",
113
113
  "eslint-plugin-react-hooks": "^4.6.0",
114
114
  "eslint-plugin-react-refresh": "^0.4.6",
115
- "eslint-plugin-svelte": "2.36.0-next.13",
115
+ "eslint-plugin-svelte": "2.36.0",
116
116
  "execa": "^8.0.1",
117
117
  "fast-glob": "^3.3.2",
118
118
  "fs-extra": "^11.2.0",
119
119
  "lint-staged": "^15.2.2",
120
120
  "rimraf": "^5.0.5",
121
121
  "simple-git-hooks": "^2.11.1",
122
- "svelte": "^4.2.12",
123
- "svelte-eslint-parser": "^0.33.1",
122
+ "svelte": "^4.2.13",
123
+ "svelte-eslint-parser": "^0.34.1",
124
124
  "tsup": "^8.0.2",
125
125
  "tsx": "^4.7.2",
126
- "typescript": "^5.4.4"
126
+ "typescript": "^5.4.5"
127
127
  },
128
128
  "simple-git-hooks": {
129
129
  "pre-commit": "pnpx nano-staged"