@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/README.md CHANGED
@@ -59,9 +59,6 @@ Add the following settings to your `.vscode/settings.json`:
59
59
 
60
60
  ```jsonc
61
61
  {
62
- // Enable the ESlint flat config support
63
- "eslint.experimental.useFlatConfig": true,
64
-
65
62
  // Disable the default formatter, use eslint instead
66
63
  "prettier.enable": false,
67
64
  "editor.formatOnSave": false,
package/dist/cli.cjs CHANGED
@@ -46,35 +46,35 @@ 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.5.5";
49
+ var version = "2.5.6";
50
50
  var devDependencies = {
51
51
  "@antfu/ni": "^0.21.12",
52
- "@eslint-react/eslint-plugin": "^1.5.15",
53
- "@eslint/config-inspector": "^0.4.11",
54
- "@stylistic/eslint-plugin-migrate": "^2.1.0",
52
+ "@eslint-react/eslint-plugin": "^1.5.20",
53
+ "@eslint/config-inspector": "^0.5.1",
54
+ "@stylistic/eslint-plugin-migrate": "^2.3.0",
55
55
  "@types/eslint": "^8.56.10",
56
56
  "@types/fs-extra": "^11.0.4",
57
- "@types/node": "^20.14.2",
57
+ "@types/node": "^20.14.9",
58
58
  "@types/prompts": "^2.4.9",
59
59
  "@types/yargs": "^17.0.32",
60
60
  "@unocss/eslint-plugin": "^0.61.0",
61
61
  bumpp: "^9.4.1",
62
- eslint: "^9.4.0",
62
+ eslint: "^9.6.0",
63
63
  "eslint-plugin-react-hooks": "^4.6.2",
64
64
  "eslint-plugin-react-refresh": "^0.4.7",
65
- "eslint-plugin-svelte": "2.39.0",
66
- "eslint-plugin-tailwindcss": "^3.17.3",
67
- execa: "^9.2.0",
65
+ "eslint-plugin-svelte": "2.39.5",
66
+ "eslint-plugin-tailwindcss": "^3.17.4",
67
+ execa: "^9.3.0",
68
68
  "fast-glob": "^3.3.2",
69
69
  "fs-extra": "^11.2.0",
70
- "lint-staged": "^15.2.6",
70
+ "lint-staged": "^15.2.7",
71
71
  rimraf: "^5.0.7",
72
72
  "simple-git-hooks": "^2.11.1",
73
73
  svelte: "^4.2.18",
74
- "svelte-eslint-parser": "^0.37.0",
74
+ "svelte-eslint-parser": "^0.39.2",
75
75
  tsup: "^8.1.0",
76
- tsx: "^4.15.2",
77
- typescript: "^5.4.5"
76
+ tsx: "^4.16.0",
77
+ typescript: "^5.5.3"
78
78
  };
79
79
 
80
80
  // src/cli/constants.ts
@@ -84,9 +84,6 @@ var CROSS = import_picocolors.default.red("\u2718");
84
84
  var WARN = import_picocolors.default.yellow("\u2139");
85
85
  var eslintVersion = devDependencies.eslint;
86
86
  var vscodeSettingsString = `
87
- // Enable the ESlint flat config support
88
- "eslint.experimental.useFlatConfig": true,
89
-
90
87
  // Disable the default formatter, use eslint instead
91
88
  "prettier.enable": false,
92
89
  "editor.formatOnSave": false,
package/dist/cli.js CHANGED
@@ -17,35 +17,35 @@ import parse from "parse-gitignore";
17
17
  import c from "picocolors";
18
18
 
19
19
  // package.json
20
- var version = "2.5.5";
20
+ var version = "2.5.6";
21
21
  var devDependencies = {
22
22
  "@antfu/ni": "^0.21.12",
23
- "@eslint-react/eslint-plugin": "^1.5.15",
24
- "@eslint/config-inspector": "^0.4.11",
25
- "@stylistic/eslint-plugin-migrate": "^2.1.0",
23
+ "@eslint-react/eslint-plugin": "^1.5.20",
24
+ "@eslint/config-inspector": "^0.5.1",
25
+ "@stylistic/eslint-plugin-migrate": "^2.3.0",
26
26
  "@types/eslint": "^8.56.10",
27
27
  "@types/fs-extra": "^11.0.4",
28
- "@types/node": "^20.14.2",
28
+ "@types/node": "^20.14.9",
29
29
  "@types/prompts": "^2.4.9",
30
30
  "@types/yargs": "^17.0.32",
31
31
  "@unocss/eslint-plugin": "^0.61.0",
32
32
  bumpp: "^9.4.1",
33
- eslint: "^9.4.0",
33
+ eslint: "^9.6.0",
34
34
  "eslint-plugin-react-hooks": "^4.6.2",
35
35
  "eslint-plugin-react-refresh": "^0.4.7",
36
- "eslint-plugin-svelte": "2.39.0",
37
- "eslint-plugin-tailwindcss": "^3.17.3",
38
- execa: "^9.2.0",
36
+ "eslint-plugin-svelte": "2.39.5",
37
+ "eslint-plugin-tailwindcss": "^3.17.4",
38
+ execa: "^9.3.0",
39
39
  "fast-glob": "^3.3.2",
40
40
  "fs-extra": "^11.2.0",
41
- "lint-staged": "^15.2.6",
41
+ "lint-staged": "^15.2.7",
42
42
  rimraf: "^5.0.7",
43
43
  "simple-git-hooks": "^2.11.1",
44
44
  svelte: "^4.2.18",
45
- "svelte-eslint-parser": "^0.37.0",
45
+ "svelte-eslint-parser": "^0.39.2",
46
46
  tsup: "^8.1.0",
47
- tsx: "^4.15.2",
48
- typescript: "^5.4.5"
47
+ tsx: "^4.16.0",
48
+ typescript: "^5.5.3"
49
49
  };
50
50
 
51
51
  // src/cli/constants.ts
@@ -55,9 +55,6 @@ var CROSS = c.red("\u2718");
55
55
  var WARN = c.yellow("\u2139");
56
56
  var eslintVersion = devDependencies.eslint;
57
57
  var vscodeSettingsString = `
58
- // Enable the ESlint flat config support
59
- "eslint.experimental.useFlatConfig": true,
60
-
61
58
  // Disable the default formatter, use eslint instead
62
59
  "prettier.enable": false,
63
60
  "editor.formatOnSave": false,
package/dist/index.cjs CHANGED
@@ -79,6 +79,7 @@ var GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
79
79
  var GLOB_JS = "**/*.?([cm])js";
80
80
  var GLOB_JSX = "**/*.?([cm])jsx";
81
81
  var GLOB_TS = "**/*.?([cm])ts";
82
+ var GLOB_DTS = "**/*.d.?([cm])ts";
82
83
  var GLOB_TSX = "**/*.?([cm])tsx";
83
84
  var GLOB_VUE = "**/*.vue";
84
85
  var GLOB_ASTRO_TS = "**/*.astro/*.ts";
@@ -127,6 +128,7 @@ var GLOB_EXCLUDE = [
127
128
  "**/.output",
128
129
  "**/.vite-inspect",
129
130
  "**/.yarn",
131
+ "**/vite.config.*.timestamp-*",
130
132
  "**/CHANGELOG*.md",
131
133
  "**/*.min.*",
132
134
  "**/LICENSE*",
@@ -994,9 +996,12 @@ async function typescript(options = {}) {
994
996
  "ts/no-unsafe-call": "error",
995
997
  "ts/no-unsafe-member-access": "error",
996
998
  "ts/no-unsafe-return": "error",
999
+ "ts/promise-function-async": "error",
997
1000
  "ts/restrict-plus-operands": "error",
998
1001
  "ts/restrict-template-expressions": "error",
1002
+ "ts/return-await": "error",
999
1003
  "ts/strict-boolean-expressions": "error",
1004
+ "ts/switch-exhaustiveness-check": "error",
1000
1005
  "ts/unbound-method": "error"
1001
1006
  };
1002
1007
  const [pluginTs, parserTs] = await Promise.all([
@@ -1098,7 +1103,7 @@ async function typescript(options = {}) {
1098
1103
  }
1099
1104
  ] : [],
1100
1105
  {
1101
- files: [GLOB_TS],
1106
+ files: [GLOB_DTS],
1102
1107
  name: "coderwyd/typescript/disables/dts",
1103
1108
  rules: {
1104
1109
  "eslint-comments/no-unlimited-disable": "off",
@@ -1489,7 +1494,7 @@ var import_local_pkg3 = require("local-pkg");
1489
1494
  // src/env.ts
1490
1495
  var import_node_process3 = __toESM(require("process"), 1);
1491
1496
  var import_local_pkg2 = require("local-pkg");
1492
- var isInEditor = !!((import_node_process3.default.env.VSCODE_PID || import_node_process3.default.env.VSCODE_CWD || import_node_process3.default.env.JETBRAINS_IDE || import_node_process3.default.env.VIM) && !import_node_process3.default.env.CI);
1497
+ var isInEditor = !!((import_node_process3.default.env.VSCODE_PID || import_node_process3.default.env.VSCODE_CWD || import_node_process3.default.env.JETBRAINS_IDE || import_node_process3.default.env.VIM || import_node_process3.default.env.NVIM) && !import_node_process3.default.env.CI);
1493
1498
  var hasTypeScript = (0, import_local_pkg2.isPackageExists)("typescript");
1494
1499
  var VueJsPackages = [
1495
1500
  "vue",