@debbl/eslint-config 3.0.5 → 3.0.7

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.cjs CHANGED
@@ -226,7 +226,23 @@ async function imports() {
226
226
  "import/no-named-default": "error",
227
227
  "import/no-self-import": "error",
228
228
  "import/no-webpack-loader-syntax": "error",
229
- "import/order": "error",
229
+ "import/order": [
230
+ "error",
231
+ {
232
+ groups: [
233
+ "builtin",
234
+ "external",
235
+ "internal",
236
+ "parent",
237
+ "sibling",
238
+ "index",
239
+ "object",
240
+ "type"
241
+ ],
242
+ pathGroups: [{ group: "internal", pattern: "{{@,~}/,#}**" }],
243
+ pathGroupsExcludedImportTypes: ["type"]
244
+ }
245
+ ],
230
246
  "import/newline-after-import": [
231
247
  "error",
232
248
  { considerComments: true, count: 1 }
@@ -328,7 +344,7 @@ var javascript = async (options) => {
328
344
  "no-multi-str": "error",
329
345
  "no-new": "error",
330
346
  "no-new-func": "error",
331
- "no-new-symbol": "error",
347
+ "no-new-native-nonconstructor": "error",
332
348
  "no-new-wrappers": "error",
333
349
  "no-obj-calls": "error",
334
350
  "no-octal": "error",
@@ -986,6 +1002,8 @@ var typescript = async (options) => {
986
1002
  "error",
987
1003
  { disallowTypeAnnotations: false, prefer: "type-imports" }
988
1004
  ],
1005
+ // https://www.totaltypescript.com/method-shorthand-syntax-considered-harmful
1006
+ "@typescript-eslint/method-signature-style": ["error", "property"],
989
1007
  "@typescript-eslint/no-dupe-class-members": "error",
990
1008
  "@typescript-eslint/no-dynamic-delete": "off",
991
1009
  "@typescript-eslint/no-explicit-any": "off",
package/dist/index.js CHANGED
@@ -145,7 +145,23 @@ async function imports() {
145
145
  "import/no-named-default": "error",
146
146
  "import/no-self-import": "error",
147
147
  "import/no-webpack-loader-syntax": "error",
148
- "import/order": "error",
148
+ "import/order": [
149
+ "error",
150
+ {
151
+ groups: [
152
+ "builtin",
153
+ "external",
154
+ "internal",
155
+ "parent",
156
+ "sibling",
157
+ "index",
158
+ "object",
159
+ "type"
160
+ ],
161
+ pathGroups: [{ group: "internal", pattern: "{{@,~}/,#}**" }],
162
+ pathGroupsExcludedImportTypes: ["type"]
163
+ }
164
+ ],
149
165
  "import/newline-after-import": [
150
166
  "error",
151
167
  { considerComments: true, count: 1 }
@@ -247,7 +263,7 @@ var javascript = async (options) => {
247
263
  "no-multi-str": "error",
248
264
  "no-new": "error",
249
265
  "no-new-func": "error",
250
- "no-new-symbol": "error",
266
+ "no-new-native-nonconstructor": "error",
251
267
  "no-new-wrappers": "error",
252
268
  "no-obj-calls": "error",
253
269
  "no-octal": "error",
@@ -905,6 +921,8 @@ var typescript = async (options) => {
905
921
  "error",
906
922
  { disallowTypeAnnotations: false, prefer: "type-imports" }
907
923
  ],
924
+ // https://www.totaltypescript.com/method-shorthand-syntax-considered-harmful
925
+ "@typescript-eslint/method-signature-style": ["error", "property"],
908
926
  "@typescript-eslint/no-dupe-class-members": "error",
909
927
  "@typescript-eslint/no-dynamic-delete": "off",
910
928
  "@typescript-eslint/no-explicit-any": "off",
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@debbl/eslint-config",
3
3
  "type": "module",
4
- "version": "3.0.5",
5
- "packageManager": "pnpm@8.15.0",
4
+ "version": "3.0.7",
5
+ "packageManager": "pnpm@8.15.6",
6
6
  "description": "Brendan Dash's ESLint config",
7
7
  "author": "Debbl <me@aiwan.run> (https://github.com/Debbl/)",
8
8
  "license": "MIT",
@@ -27,54 +27,54 @@
27
27
  "eslint": ">=8.40.0"
28
28
  },
29
29
  "dependencies": {
30
- "@next/eslint-plugin-next": "^14.1.0",
31
- "@typescript-eslint/eslint-plugin": "^6.19.1",
32
- "@typescript-eslint/parser": "^6.19.1",
30
+ "@next/eslint-plugin-next": "^14.1.4",
31
+ "@typescript-eslint/eslint-plugin": "^7.5.0",
32
+ "@typescript-eslint/parser": "^7.5.0",
33
33
  "eslint-config-prettier": "^9.1.0",
34
34
  "eslint-define-config": "^2.1.0",
35
35
  "eslint-mdx": "^3.1.5",
36
36
  "eslint-parser-plain": "^0.1.0",
37
37
  "eslint-plugin-eslint-comments": "^3.2.0",
38
38
  "eslint-plugin-i": "^2.29.1",
39
- "eslint-plugin-jsdoc": "^48.0.4",
40
- "eslint-plugin-jsonc": "^2.13.0",
41
- "eslint-plugin-markdown": "^3.0.1",
39
+ "eslint-plugin-jsdoc": "^48.2.2",
40
+ "eslint-plugin-jsonc": "^2.15.0",
41
+ "eslint-plugin-markdown": "^4.0.1",
42
42
  "eslint-plugin-mdx": "^3.1.5",
43
43
  "eslint-plugin-n": "^16.6.2",
44
44
  "eslint-plugin-no-only-tests": "^3.1.0",
45
- "eslint-plugin-perfectionist": "^2.5.0",
45
+ "eslint-plugin-perfectionist": "^2.8.0",
46
46
  "eslint-plugin-prettier": "^5.1.3",
47
- "eslint-plugin-react": "^7.33.2",
47
+ "eslint-plugin-react": "^7.34.1",
48
48
  "eslint-plugin-react-hooks": "^4.6.0",
49
- "eslint-plugin-tailwindcss": "^3.14.1",
50
- "eslint-plugin-toml": "^0.9.2",
51
- "eslint-plugin-unicorn": "^50.0.1",
52
- "eslint-plugin-unused-imports": "^3.0.0",
53
- "eslint-plugin-vitest": "^0.3.20",
54
- "eslint-plugin-vue": "^9.20.1",
55
- "eslint-plugin-yml": "^1.12.2",
56
- "globals": "^13.24.0",
49
+ "eslint-plugin-tailwindcss": "^3.15.1",
50
+ "eslint-plugin-toml": "^0.11.0",
51
+ "eslint-plugin-unicorn": "^52.0.0",
52
+ "eslint-plugin-unused-imports": "^3.1.0",
53
+ "eslint-plugin-vitest": "^0.4.1",
54
+ "eslint-plugin-vue": "^9.24.0",
55
+ "eslint-plugin-yml": "^1.14.0",
56
+ "globals": "^15.0.0",
57
57
  "jsonc-eslint-parser": "^2.4.0",
58
- "prettier": "^3.2.4",
58
+ "prettier": "^3.2.5",
59
59
  "toml-eslint-parser": "^0.9.3",
60
60
  "vue-eslint-parser": "^9.4.2",
61
61
  "yaml-eslint-parser": "^1.2.2"
62
62
  },
63
63
  "devDependencies": {
64
- "@types/eslint": "^8.56.2",
65
- "@types/node": "^20.11.10",
66
- "@types/react": "^18.2.48",
67
- "bumpp": "^9.3.0",
68
- "eslint": "^8.56.0",
69
- "eslint-flat-config-viewer": "^0.1.11",
64
+ "@types/eslint": "^8.56.7",
65
+ "@types/node": "^20.12.4",
66
+ "@types/react": "^18.2.74",
67
+ "bumpp": "^9.4.0",
68
+ "eslint": "^8.57.0",
69
+ "eslint-flat-config-viewer": "^0.1.20",
70
70
  "execa": "^8.0.1",
71
71
  "fast-glob": "^3.3.2",
72
72
  "fs-extra": "^11.2.0",
73
73
  "react": "^18.2.0",
74
74
  "sucrase": "^3.35.0",
75
- "tsup": "^8.0.1",
76
- "typescript": "^5.3.3",
77
- "vitest": "^1.2.2"
75
+ "tsup": "^8.0.2",
76
+ "typescript": "^5.4.3",
77
+ "vitest": "^1.4.0"
78
78
  },
79
79
  "scripts": {
80
80
  "build": "tsup --format esm,cjs --clean --dts",