@debbl/eslint-config 3.0.5 → 3.0.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.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 }
@@ -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",
@@ -1368,6 +1386,11 @@ var prettier = async (options) => {
1368
1386
  interopDefault(import("eslint-parser-plain"))
1369
1387
  ]);
1370
1388
  const PlainFileRules = [
1389
+ {
1390
+ name: "eslint:prettier:json",
1391
+ files: [GLOB_JSON, GLOB_JSONC, GLOB_JSON5],
1392
+ parser: "json"
1393
+ },
1371
1394
  {
1372
1395
  name: "eslint:prettier:markdown",
1373
1396
  files: [GLOB_MARKDOWN],
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 }
@@ -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.6",
5
+ "packageManager": "pnpm@8.15.1",
6
6
  "description": "Brendan Dash's ESLint config",
7
7
  "author": "Debbl <me@aiwan.run> (https://github.com/Debbl/)",
8
8
  "license": "MIT",
@@ -28,15 +28,15 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "@next/eslint-plugin-next": "^14.1.0",
31
- "@typescript-eslint/eslint-plugin": "^6.19.1",
32
- "@typescript-eslint/parser": "^6.19.1",
31
+ "@typescript-eslint/eslint-plugin": "^6.21.0",
32
+ "@typescript-eslint/parser": "^6.21.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",
39
+ "eslint-plugin-jsdoc": "^48.0.6",
40
40
  "eslint-plugin-jsonc": "^2.13.0",
41
41
  "eslint-plugin-markdown": "^3.0.1",
42
42
  "eslint-plugin-mdx": "^3.1.5",
@@ -46,24 +46,24 @@
46
46
  "eslint-plugin-prettier": "^5.1.3",
47
47
  "eslint-plugin-react": "^7.33.2",
48
48
  "eslint-plugin-react-hooks": "^4.6.0",
49
- "eslint-plugin-tailwindcss": "^3.14.1",
49
+ "eslint-plugin-tailwindcss": "^3.14.2",
50
50
  "eslint-plugin-toml": "^0.9.2",
51
- "eslint-plugin-unicorn": "^50.0.1",
51
+ "eslint-plugin-unicorn": "^51.0.1",
52
52
  "eslint-plugin-unused-imports": "^3.0.0",
53
- "eslint-plugin-vitest": "^0.3.20",
54
- "eslint-plugin-vue": "^9.20.1",
53
+ "eslint-plugin-vitest": "^0.3.22",
54
+ "eslint-plugin-vue": "^9.21.1",
55
55
  "eslint-plugin-yml": "^1.12.2",
56
56
  "globals": "^13.24.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
64
  "@types/eslint": "^8.56.2",
65
- "@types/node": "^20.11.10",
66
- "@types/react": "^18.2.48",
65
+ "@types/node": "^20.11.16",
66
+ "@types/react": "^18.2.55",
67
67
  "bumpp": "^9.3.0",
68
68
  "eslint": "^8.56.0",
69
69
  "eslint-flat-config-viewer": "^0.1.11",