@coderwyd/eslint-config 2.5.5 → 2.5.6

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
@@ -34,6 +34,7 @@ var GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
34
34
  var GLOB_JS = "**/*.?([cm])js";
35
35
  var GLOB_JSX = "**/*.?([cm])jsx";
36
36
  var GLOB_TS = "**/*.?([cm])ts";
37
+ var GLOB_DTS = "**/*.d.?([cm])ts";
37
38
  var GLOB_TSX = "**/*.?([cm])tsx";
38
39
  var GLOB_VUE = "**/*.vue";
39
40
  var GLOB_ASTRO_TS = "**/*.astro/*.ts";
@@ -82,6 +83,7 @@ var GLOB_EXCLUDE = [
82
83
  "**/.output",
83
84
  "**/.vite-inspect",
84
85
  "**/.yarn",
86
+ "**/vite.config.*.timestamp-*",
85
87
  "**/CHANGELOG*.md",
86
88
  "**/*.min.*",
87
89
  "**/LICENSE*",
@@ -949,9 +951,12 @@ async function typescript(options = {}) {
949
951
  "ts/no-unsafe-call": "error",
950
952
  "ts/no-unsafe-member-access": "error",
951
953
  "ts/no-unsafe-return": "error",
954
+ "ts/promise-function-async": "error",
952
955
  "ts/restrict-plus-operands": "error",
953
956
  "ts/restrict-template-expressions": "error",
957
+ "ts/return-await": "error",
954
958
  "ts/strict-boolean-expressions": "error",
959
+ "ts/switch-exhaustiveness-check": "error",
955
960
  "ts/unbound-method": "error"
956
961
  };
957
962
  const [pluginTs, parserTs] = await Promise.all([
@@ -1053,7 +1058,7 @@ async function typescript(options = {}) {
1053
1058
  }
1054
1059
  ] : [],
1055
1060
  {
1056
- files: [GLOB_TS],
1061
+ files: [GLOB_DTS],
1057
1062
  name: "coderwyd/typescript/disables/dts",
1058
1063
  rules: {
1059
1064
  "eslint-comments/no-unlimited-disable": "off",
@@ -1444,7 +1449,7 @@ import { isPackageExists as isPackageExists3 } from "local-pkg";
1444
1449
  // src/env.ts
1445
1450
  import process3 from "node:process";
1446
1451
  import { isPackageExists as isPackageExists2 } from "local-pkg";
1447
- var isInEditor = !!((process3.env.VSCODE_PID || process3.env.VSCODE_CWD || process3.env.JETBRAINS_IDE || process3.env.VIM) && !process3.env.CI);
1452
+ var isInEditor = !!((process3.env.VSCODE_PID || process3.env.VSCODE_CWD || process3.env.JETBRAINS_IDE || process3.env.VIM || process3.env.NVIM) && !process3.env.CI);
1448
1453
  var hasTypeScript = isPackageExists2("typescript");
1449
1454
  var VueJsPackages = [
1450
1455
  "vue",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@coderwyd/eslint-config",
3
3
  "type": "module",
4
- "version": "2.5.5",
4
+ "version": "2.5.6",
5
5
  "description": "Donny's ESLint config",
6
6
  "author": "Donny Wang <donny526@outlook.com> (https://github.com/coderwyd/)",
7
7
  "license": "MIT",
@@ -40,9 +40,9 @@
40
40
  "eslint": "^8.56.0 || ^9.0.0",
41
41
  "eslint-plugin-react-hooks": "^4.6.0",
42
42
  "eslint-plugin-react-refresh": "^0.4.4",
43
- "eslint-plugin-svelte": "^2.34.1",
43
+ "eslint-plugin-svelte": ">=2.35.1",
44
44
  "eslint-plugin-tailwindcss": "^3.16.0",
45
- "svelte-eslint-parser": "^0.33.1 || ^0.36.0"
45
+ "svelte-eslint-parser": ">=0.37.0"
46
46
  },
47
47
  "peerDependenciesMeta": {
48
48
  "@eslint-react/eslint-plugin": {
@@ -69,30 +69,30 @@
69
69
  },
70
70
  "dependencies": {
71
71
  "@antfu/install-pkg": "^0.3.3",
72
- "@stylistic/eslint-plugin": "^2.1.0",
72
+ "@stylistic/eslint-plugin": "^2.3.0",
73
73
  "@toml-tools/parser": "^1.0.0",
74
- "@typescript-eslint/eslint-plugin": "^7.13.0",
75
- "@typescript-eslint/parser": "^7.13.0",
74
+ "@typescript-eslint/eslint-plugin": "^7.15.0",
75
+ "@typescript-eslint/parser": "^7.15.0",
76
76
  "eslint-config-flat-gitignore": "^0.1.5",
77
77
  "eslint-merge-processors": "^0.1.0",
78
78
  "eslint-plugin-antfu": "^2.3.3",
79
79
  "eslint-plugin-command": "^0.2.3",
80
80
  "eslint-plugin-eslint-comments": "^3.2.0",
81
- "eslint-plugin-format": "^0.1.1",
82
- "eslint-plugin-import-x": "^0.5.1",
83
- "eslint-plugin-jsdoc": "^48.2.9",
81
+ "eslint-plugin-format": "^0.1.2",
82
+ "eslint-plugin-import-x": "^0.5.3",
83
+ "eslint-plugin-jsdoc": "^48.5.0",
84
84
  "eslint-plugin-jsonc": "^2.16.0",
85
- "eslint-plugin-n": "^17.8.1",
85
+ "eslint-plugin-n": "^17.9.0",
86
86
  "eslint-plugin-no-only-tests": "^3.1.0",
87
- "eslint-plugin-perfectionist": "^2.10.0",
87
+ "eslint-plugin-perfectionist": "^2.11.0",
88
88
  "eslint-plugin-regexp": "^2.6.0",
89
- "eslint-plugin-unicorn": "^53.0.0",
89
+ "eslint-plugin-unicorn": "^54.0.0",
90
90
  "eslint-plugin-unused-imports": "^3.2.0",
91
91
  "eslint-plugin-vitest": "^0.5.4",
92
- "eslint-plugin-vue": "^9.26.0",
92
+ "eslint-plugin-vue": "^9.27.0",
93
93
  "eslint-processor-vue-blocks": "^0.1.2",
94
94
  "eslint-typegen": "^0.2.4",
95
- "globals": "^15.4.0",
95
+ "globals": "^15.7.0",
96
96
  "jsonc-eslint-parser": "^2.4.0",
97
97
  "local-pkg": "^0.5.0",
98
98
  "parse-gitignore": "^2.0.0",
@@ -104,32 +104,32 @@
104
104
  },
105
105
  "devDependencies": {
106
106
  "@antfu/ni": "^0.21.12",
107
- "@eslint-react/eslint-plugin": "^1.5.15",
108
- "@eslint/config-inspector": "^0.4.11",
109
- "@stylistic/eslint-plugin-migrate": "^2.1.0",
107
+ "@eslint-react/eslint-plugin": "^1.5.20",
108
+ "@eslint/config-inspector": "^0.5.1",
109
+ "@stylistic/eslint-plugin-migrate": "^2.3.0",
110
110
  "@types/eslint": "^8.56.10",
111
111
  "@types/fs-extra": "^11.0.4",
112
- "@types/node": "^20.14.2",
112
+ "@types/node": "^20.14.9",
113
113
  "@types/prompts": "^2.4.9",
114
114
  "@types/yargs": "^17.0.32",
115
115
  "@unocss/eslint-plugin": "^0.61.0",
116
116
  "bumpp": "^9.4.1",
117
- "eslint": "^9.4.0",
117
+ "eslint": "^9.6.0",
118
118
  "eslint-plugin-react-hooks": "^4.6.2",
119
119
  "eslint-plugin-react-refresh": "^0.4.7",
120
- "eslint-plugin-svelte": "2.39.0",
121
- "eslint-plugin-tailwindcss": "^3.17.3",
122
- "execa": "^9.2.0",
120
+ "eslint-plugin-svelte": "2.39.5",
121
+ "eslint-plugin-tailwindcss": "^3.17.4",
122
+ "execa": "^9.3.0",
123
123
  "fast-glob": "^3.3.2",
124
124
  "fs-extra": "^11.2.0",
125
- "lint-staged": "^15.2.6",
125
+ "lint-staged": "^15.2.7",
126
126
  "rimraf": "^5.0.7",
127
127
  "simple-git-hooks": "^2.11.1",
128
128
  "svelte": "^4.2.18",
129
- "svelte-eslint-parser": "^0.37.0",
129
+ "svelte-eslint-parser": "^0.39.2",
130
130
  "tsup": "^8.1.0",
131
- "tsx": "^4.15.2",
132
- "typescript": "^5.4.5"
131
+ "tsx": "^4.16.0",
132
+ "typescript": "^5.5.3"
133
133
  },
134
134
  "simple-git-hooks": {
135
135
  "pre-commit": "pnpx nano-staged"