@coderwyd/eslint-config 2.2.0 → 2.2.1

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
@@ -218,9 +218,6 @@ interface OptionsConfig {
218
218
  /**
219
219
  * Use external formatters to format files.
220
220
  *
221
- * Requires installing:
222
- * - `eslint-plugin-prettier`
223
- *
224
221
  * @default
225
222
  * {
226
223
  * "html": true,
package/dist/cli.cjs CHANGED
@@ -46,17 +46,17 @@ 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.2.0";
49
+ var version = "2.2.1";
50
50
  var devDependencies = {
51
51
  "@antfu/ni": "^0.21.12",
52
- "@types/eslint": "^8.56.2",
52
+ "@types/eslint": "^8.56.5",
53
53
  "@types/fs-extra": "^11.0.4",
54
- "@types/node": "^20.11.19",
54
+ "@types/node": "^20.11.24",
55
55
  "@types/prompts": "^2.4.9",
56
56
  "@types/yargs": "^17.0.32",
57
57
  "@unocss/eslint-plugin": "^0.58.5",
58
58
  bumpp: "^9.3.0",
59
- eslint: "^8.56.0",
59
+ eslint: "^8.57.0",
60
60
  "eslint-flat-config-viewer": "^0.1.11",
61
61
  "eslint-plugin-react": "^7.33.2",
62
62
  "eslint-plugin-react-hooks": "^4.6.0",
@@ -68,7 +68,7 @@ var devDependencies = {
68
68
  "fs-extra": "^11.2.0",
69
69
  "lint-staged": "^15.2.2",
70
70
  rimraf: "^5.0.5",
71
- "simple-git-hooks": "^2.9.0",
71
+ "simple-git-hooks": "^2.10.0",
72
72
  "svelte-eslint-parser": "^0.33.1",
73
73
  tsup: "^8.0.2",
74
74
  typescript: "^5.3.3"
package/dist/cli.js CHANGED
@@ -17,17 +17,17 @@ import parse from "parse-gitignore";
17
17
  import c from "picocolors";
18
18
 
19
19
  // package.json
20
- var version = "2.2.0";
20
+ var version = "2.2.1";
21
21
  var devDependencies = {
22
22
  "@antfu/ni": "^0.21.12",
23
- "@types/eslint": "^8.56.2",
23
+ "@types/eslint": "^8.56.5",
24
24
  "@types/fs-extra": "^11.0.4",
25
- "@types/node": "^20.11.19",
25
+ "@types/node": "^20.11.24",
26
26
  "@types/prompts": "^2.4.9",
27
27
  "@types/yargs": "^17.0.32",
28
28
  "@unocss/eslint-plugin": "^0.58.5",
29
29
  bumpp: "^9.3.0",
30
- eslint: "^8.56.0",
30
+ eslint: "^8.57.0",
31
31
  "eslint-flat-config-viewer": "^0.1.11",
32
32
  "eslint-plugin-react": "^7.33.2",
33
33
  "eslint-plugin-react-hooks": "^4.6.0",
@@ -39,7 +39,7 @@ var devDependencies = {
39
39
  "fs-extra": "^11.2.0",
40
40
  "lint-staged": "^15.2.2",
41
41
  rimraf: "^5.0.5",
42
- "simple-git-hooks": "^2.9.0",
42
+ "simple-git-hooks": "^2.10.0",
43
43
  "svelte-eslint-parser": "^0.33.1",
44
44
  tsup: "^8.0.2",
45
45
  typescript: "^5.3.3"
package/dist/index.cjs CHANGED
@@ -240,6 +240,8 @@ async function javascript(options = {}) {
240
240
  "default-case-last": "error",
241
241
  "dot-notation": ["error", { allowKeywords: true }],
242
242
  eqeqeq: ["error", "smart"],
243
+ "for-direction": "error",
244
+ "getter-return": "error",
243
245
  "new-cap": [
244
246
  "error",
245
247
  { capIsNew: false, newIsCap: true, properties: true }
@@ -254,6 +256,7 @@ async function javascript(options = {}) {
254
256
  "no-cond-assign": ["error", "always"],
255
257
  "no-console": ["error", { allow: ["warn", "error"] }],
256
258
  "no-const-assign": "error",
259
+ "no-constant-condition": "error",
257
260
  "no-control-regex": "error",
258
261
  "no-debugger": "error",
259
262
  "no-delete-var": "error",
@@ -1682,7 +1685,7 @@ async function tailwindcss(options = {}) {
1682
1685
  // src/env.ts
1683
1686
  var import_node_process3 = __toESM(require("process"), 1);
1684
1687
  var import_local_pkg3 = require("local-pkg");
1685
- var isInEditor = !!((import_node_process3.default.env.VSCODE_PID || import_node_process3.default.env.JETBRAINS_IDE || import_node_process3.default.env.VIM) && !import_node_process3.default.env.CI);
1688
+ 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);
1686
1689
  var hasTypeScript = (0, import_local_pkg3.isPackageExists)("typescript");
1687
1690
  var hasVue = (0, import_local_pkg3.isPackageExists)("vue") || (0, import_local_pkg3.isPackageExists)("nuxt") || (0, import_local_pkg3.isPackageExists)("vitepress") || (0, import_local_pkg3.isPackageExists)("@slidev/cli");
1688
1691
  var hasUnocss = (0, import_local_pkg3.isPackageExists)("unocss") || (0, import_local_pkg3.isPackageExists)("@unocss/webpack") || (0, import_local_pkg3.isPackageExists)("@unocss/nuxt");
package/dist/index.js CHANGED
@@ -206,6 +206,8 @@ async function javascript(options = {}) {
206
206
  "default-case-last": "error",
207
207
  "dot-notation": ["error", { allowKeywords: true }],
208
208
  eqeqeq: ["error", "smart"],
209
+ "for-direction": "error",
210
+ "getter-return": "error",
209
211
  "new-cap": [
210
212
  "error",
211
213
  { capIsNew: false, newIsCap: true, properties: true }
@@ -220,6 +222,7 @@ async function javascript(options = {}) {
220
222
  "no-cond-assign": ["error", "always"],
221
223
  "no-console": ["error", { allow: ["warn", "error"] }],
222
224
  "no-const-assign": "error",
225
+ "no-constant-condition": "error",
223
226
  "no-control-regex": "error",
224
227
  "no-debugger": "error",
225
228
  "no-delete-var": "error",
@@ -1648,7 +1651,7 @@ async function tailwindcss(options = {}) {
1648
1651
  // src/env.ts
1649
1652
  import process3 from "node:process";
1650
1653
  import { isPackageExists as isPackageExists3 } from "local-pkg";
1651
- var isInEditor = !!((process3.env.VSCODE_PID || process3.env.JETBRAINS_IDE || process3.env.VIM) && !process3.env.CI);
1654
+ var isInEditor = !!((process3.env.VSCODE_PID || process3.env.VSCODE_CWD || process3.env.JETBRAINS_IDE || process3.env.VIM) && !process3.env.CI);
1652
1655
  var hasTypeScript = isPackageExists3("typescript");
1653
1656
  var hasVue = isPackageExists3("vue") || isPackageExists3("nuxt") || isPackageExists3("vitepress") || isPackageExists3("@slidev/cli");
1654
1657
  var hasUnocss = isPackageExists3("unocss") || isPackageExists3("@unocss/webpack") || isPackageExists3("@unocss/nuxt");
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@coderwyd/eslint-config",
3
3
  "type": "module",
4
- "version": "2.2.0",
5
- "packageManager": "pnpm@8.15.3",
4
+ "version": "2.2.1",
5
+ "packageManager": "pnpm@8.15.4",
6
6
  "description": "Donny's ESLint config",
7
7
  "author": "Donny Wang <donny526@outlook.com> (https://github.com/coderwyd/)",
8
8
  "license": "MIT",
@@ -68,28 +68,28 @@
68
68
  "dependencies": {
69
69
  "@antfu/eslint-define-config": "1.23.0-2",
70
70
  "@antfu/install-pkg": "^0.3.1",
71
- "@eslint-types/jsdoc": "48.0.6",
72
- "@eslint-types/typescript-eslint": "^6.21.0",
71
+ "@eslint-types/jsdoc": "48.2.0",
72
+ "@eslint-types/typescript-eslint": "^7.0.2",
73
73
  "@eslint-types/unicorn": "^51.0.1",
74
74
  "@toml-tools/parser": "^1.0.0",
75
- "@typescript-eslint/eslint-plugin": "^7.0.1",
76
- "@typescript-eslint/parser": "^7.0.1",
75
+ "@typescript-eslint/eslint-plugin": "^7.1.0",
76
+ "@typescript-eslint/parser": "^7.1.0",
77
77
  "eslint-config-flat-gitignore": "^0.1.3",
78
78
  "eslint-config-prettier": "^9.1.0",
79
79
  "eslint-plugin-antfu": "^2.1.2",
80
80
  "eslint-plugin-eslint-comments": "^3.2.0",
81
81
  "eslint-plugin-i": "^2.29.1",
82
- "eslint-plugin-jsdoc": "^48.1.0",
82
+ "eslint-plugin-jsdoc": "^48.2.0",
83
83
  "eslint-plugin-jsonc": "^2.13.0",
84
84
  "eslint-plugin-n": "^16.6.2",
85
85
  "eslint-plugin-no-only-tests": "^3.1.0",
86
86
  "eslint-plugin-perfectionist": "^2.5.0",
87
87
  "eslint-plugin-prettier": "^5.1.3",
88
- "eslint-plugin-tailwindcss": "^3.14.2",
88
+ "eslint-plugin-tailwindcss": "^3.14.3",
89
89
  "eslint-plugin-unicorn": "^51.0.1",
90
- "eslint-plugin-unused-imports": "^3.0.0",
90
+ "eslint-plugin-unused-imports": "^3.1.0",
91
91
  "eslint-plugin-vitest": "^0.3.22",
92
- "eslint-plugin-vue": "^9.21.1",
92
+ "eslint-plugin-vue": "^9.22.0",
93
93
  "globals": "^14.0.0",
94
94
  "jsonc-eslint-parser": "^2.4.0",
95
95
  "local-pkg": "^0.5.0",
@@ -103,14 +103,14 @@
103
103
  },
104
104
  "devDependencies": {
105
105
  "@antfu/ni": "^0.21.12",
106
- "@types/eslint": "^8.56.2",
106
+ "@types/eslint": "^8.56.5",
107
107
  "@types/fs-extra": "^11.0.4",
108
- "@types/node": "^20.11.19",
108
+ "@types/node": "^20.11.24",
109
109
  "@types/prompts": "^2.4.9",
110
110
  "@types/yargs": "^17.0.32",
111
111
  "@unocss/eslint-plugin": "^0.58.5",
112
112
  "bumpp": "^9.3.0",
113
- "eslint": "^8.56.0",
113
+ "eslint": "^8.57.0",
114
114
  "eslint-flat-config-viewer": "^0.1.11",
115
115
  "eslint-plugin-react": "^7.33.2",
116
116
  "eslint-plugin-react-hooks": "^4.6.0",
@@ -122,7 +122,7 @@
122
122
  "fs-extra": "^11.2.0",
123
123
  "lint-staged": "^15.2.2",
124
124
  "rimraf": "^5.0.5",
125
- "simple-git-hooks": "^2.9.0",
125
+ "simple-git-hooks": "^2.10.0",
126
126
  "svelte-eslint-parser": "^0.33.1",
127
127
  "tsup": "^8.0.2",
128
128
  "typescript": "^5.3.3"