@ethang/eslint-config 19.10.2 → 19.11.0

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
@@ -5,12 +5,12 @@
5
5
  > [!CAUTION]
6
6
  > Do not use this with Prettier! Styling rules are included.
7
7
 
8
- - 894 errored rules.
8
+ - 895 errored rules.
9
9
  - 294 rules from [eslint-plugin-sonarjs](https://github.com/SonarSource/SonarJS/blob/master/packages/jsts/src/rules/README.md)
10
10
  - 144 rules from [@eslint/js](https://github.com/eslint/eslint/tree/main/packages/js)
11
11
  - 116 rules from [sindresorhus/eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn)
12
12
  - 103 rules from [@typescript/eslint](https://github.com/typescript-eslint/typescript-eslint)
13
- - 67 rules from [@stylistic/eslint-plugin](https://eslint.style/)
13
+ - 68 rules from [@stylistic/eslint-plugin](https://eslint.style/)
14
14
  - 42 rules from [eslint-plugin-lodash](https://github.com/wix-incubator/eslint-plugin-lodash)
15
15
  - 34 rules from [jsx-a11y](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y)
16
16
  - 25 rules from [@stylistic/eslint-plugin-ts](https://eslint.style/)
package/eslint.config.js CHANGED
@@ -82,6 +82,7 @@ export default tseslint.config(
82
82
  "speculationrules",
83
83
  "zustand",
84
84
  "vinxi",
85
+ "datasource",
85
86
  ],
86
87
  },
87
88
  },
@@ -962,6 +963,7 @@ export default tseslint.config(
962
963
  "stylistic/comma-spacing": "off",
963
964
  "stylistic/comma-style": "error",
964
965
  "stylistic/computed-property-spacing": "error",
966
+ "stylistic/curly-newline": "error",
965
967
  "stylistic/dot-location": ["error", "property"],
966
968
  "stylistic/eol-last": "error",
967
969
  "stylistic/func-call-spacing": "off",
@@ -1025,7 +1027,10 @@ export default tseslint.config(
1025
1027
  "stylistic/no-mixed-operators": "error",
1026
1028
  "stylistic/no-mixed-spaces-and-tabs": "error",
1027
1029
  "stylistic/no-multi-spaces": "error",
1028
- "stylistic/no-multiple-empty-lines": "error",
1030
+ "stylistic/no-multiple-empty-lines": [
1031
+ "error",
1032
+ { max: 1, maxEOF: 1, maxBOF: 0 },
1033
+ ],
1029
1034
  "stylistic/no-tabs": "error",
1030
1035
  "stylistic/no-trailing-spaces": "error",
1031
1036
  "stylistic/no-whitespace-before-property": "error",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethang/eslint-config",
3
- "version": "19.10.2",
3
+ "version": "19.11.0",
4
4
  "repository": {
5
5
  "url": "git+https://github.com/eglove/eslint-config-ethang.git"
6
6
  },
@@ -19,10 +19,10 @@
19
19
  "@eslint/js": "^9.12.0",
20
20
  "@eslint/json": "^0.5.0",
21
21
  "@eslint/markdown": "^6.2.0",
22
- "@stylistic/eslint-plugin": "^2.8.0",
23
- "@stylistic/eslint-plugin-ts": "^2.8.0",
22
+ "@stylistic/eslint-plugin": "^2.9.0",
23
+ "@stylistic/eslint-plugin-ts": "^2.9.0",
24
24
  "@tanstack/eslint-plugin-query": "^5.59.1",
25
- "@tanstack/eslint-plugin-router": "^1.58.6",
25
+ "@tanstack/eslint-plugin-router": "^1.62.0",
26
26
  "@typescript-eslint/parser": "^8.8.0",
27
27
  "eslint": "^9.12.0",
28
28
  "eslint-plugin-astro": "^1.2.4",
@@ -59,10 +59,10 @@
59
59
  "@eslint/js": "^9.12.0",
60
60
  "@eslint/json": "^0.5.0",
61
61
  "@eslint/markdown": "^6.2.0",
62
- "@stylistic/eslint-plugin": "^2.8.0",
63
- "@stylistic/eslint-plugin-ts": "^2.8.0",
62
+ "@stylistic/eslint-plugin": "^2.9.0",
63
+ "@stylistic/eslint-plugin-ts": "^2.9.0",
64
64
  "@tanstack/eslint-plugin-query": "^5.59.1",
65
- "@tanstack/eslint-plugin-router": "^1.58.6",
65
+ "@tanstack/eslint-plugin-router": "^1.62.0",
66
66
  "@typescript-eslint/parser": "^8.8.0",
67
67
  "eslint": "^9.12.0",
68
68
  "eslint-plugin-astro": "^1.2.4",
package/setup/cspell.ts CHANGED
@@ -41,6 +41,7 @@ const customRules: CustomRules = [
41
41
  "speculationrules",
42
42
  "zustand",
43
43
  "vinxi",
44
+ "datasource",
44
45
  ],
45
46
  },
46
47
  },
@@ -51,6 +51,10 @@ const customRules = [
51
51
  ],
52
52
  },
53
53
  { name: "multiline-comment-style", rule: "off" },
54
+ {
55
+ name: "no-multiple-empty-lines",
56
+ rule: ["error", { max: 1, maxEOF: 1, maxBOF: 0 }],
57
+ },
54
58
  { name: "padded-blocks", rule: ["error", "never"] },
55
59
  { name: "jsx-indent-props", rule: ["error", 2] },
56
60
  { name: "jsx-newline", rule: ["error", { prevent: true }] },