@ethang/eslint-config 19.7.4 → 19.7.5
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 +2 -1
- package/eslint.config.js +16 -4
- package/package.json +3 -3
- package/setup/exception-handling.ts +0 -1
- package/setup/stylistic.ts +16 -1
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
> [!CAUTION]
|
|
6
6
|
> Do not use this with Prettier! Styling rules are included.
|
|
7
7
|
|
|
8
|
-
-
|
|
8
|
+
- 889 errored rules.
|
|
9
9
|
- 289 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
|
- 113 rules from [sindresorhus/eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn)
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
- 7 rules from [@eslint/markdown](https://github.com/eslint/markdown)
|
|
20
20
|
- 5 rules from [@tanstack/eslint-plugin-query](https://tanstack.com/query/latest/docs/eslint/eslint-plugin-query)
|
|
21
21
|
- 4 rules from [eslint-plugin-barrel-files](https://github.com/thepassle/eslint-plugin-barrel-files)
|
|
22
|
+
- 3 rules from [exception-handling](https://github.com/Akronae/eslint-plugin-exception-handling)
|
|
22
23
|
- 2 rules from [@eslint/json](https://github.com/eslint/json)
|
|
23
24
|
- 1 rule from [eslint-plugin-depend](https://github.com/es-tooling/eslint-plugin-depend/tree/main)
|
|
24
25
|
- 1 rule from [@cspell/eslint-plugin](https://github.com/streetsidesoftware/cspell/tree/main/packages/cspell-eslint-plugin)
|
package/eslint.config.js
CHANGED
|
@@ -932,9 +932,9 @@ export default tseslint.config(
|
|
|
932
932
|
"sonar/weak-ssl": "error",
|
|
933
933
|
"sonar/x-powered-by": "error",
|
|
934
934
|
"sonar/xml-parser-xxe": "error",
|
|
935
|
-
"exception-handling/might-throw": "
|
|
936
|
-
"exception-handling/no-unhandled": "
|
|
937
|
-
"exception-handling/use-error-cause": "
|
|
935
|
+
"exception-handling/might-throw": "error",
|
|
936
|
+
"exception-handling/no-unhandled": "error",
|
|
937
|
+
"exception-handling/use-error-cause": "error",
|
|
938
938
|
"tailwind/classnames-order": "error",
|
|
939
939
|
"tailwind/enforces-negative-arbitrary-values": "error",
|
|
940
940
|
"tailwind/enforces-shorthand": "error",
|
|
@@ -950,7 +950,19 @@ export default tseslint.config(
|
|
|
950
950
|
"stylistic/arrow-spacing": "error",
|
|
951
951
|
"stylistic/block-spacing": "error",
|
|
952
952
|
"stylistic/brace-style": "error",
|
|
953
|
-
"stylistic/comma-dangle": [
|
|
953
|
+
"stylistic/comma-dangle": [
|
|
954
|
+
"error",
|
|
955
|
+
{
|
|
956
|
+
arrays: "always-multiline",
|
|
957
|
+
objects: "always-multiline",
|
|
958
|
+
imports: "always-multiline",
|
|
959
|
+
exports: "always-multiline",
|
|
960
|
+
functions: "always-multiline",
|
|
961
|
+
enums: "never",
|
|
962
|
+
generics: "never",
|
|
963
|
+
tuples: "never",
|
|
964
|
+
},
|
|
965
|
+
],
|
|
954
966
|
"stylistic/comma-spacing": "error",
|
|
955
967
|
"stylistic/comma-style": "error",
|
|
956
968
|
"stylistic/computed-property-spacing": "error",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ethang/eslint-config",
|
|
3
|
-
"version": "19.7.
|
|
3
|
+
"version": "19.7.5",
|
|
4
4
|
"repository": {
|
|
5
5
|
"url": "git+https://github.com/eglove/eslint-config-ethang.git"
|
|
6
6
|
},
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"eslint-plugin-barrel-files": "^2.1.0",
|
|
29
29
|
"eslint-plugin-compat": "^6.0.1",
|
|
30
30
|
"eslint-plugin-depend": "^0.11.0",
|
|
31
|
-
"eslint-plugin-exception-handling": "^1.4.
|
|
31
|
+
"eslint-plugin-exception-handling": "^1.4.3",
|
|
32
32
|
"eslint-plugin-jsx-a11y": "^6.10.0",
|
|
33
33
|
"eslint-plugin-lodash": "^8.0.0",
|
|
34
34
|
"eslint-plugin-n": "^17.10.3",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"eslint-plugin-barrel-files": "^2.1.0",
|
|
69
69
|
"eslint-plugin-compat": "^6.0.1",
|
|
70
70
|
"eslint-plugin-depend": "^0.11.0",
|
|
71
|
-
"eslint-plugin-exception-handling": "^1.4.
|
|
71
|
+
"eslint-plugin-exception-handling": "^1.4.3",
|
|
72
72
|
"eslint-plugin-jsx-a11y": "^6.10.0",
|
|
73
73
|
"eslint-plugin-lodash": "^8.0.0",
|
|
74
74
|
"eslint-plugin-n": "^17.10.3",
|
package/setup/stylistic.ts
CHANGED
|
@@ -7,7 +7,22 @@ const ruleNames = Object.keys(getNonDeprecatedRules(stylistic.rules));
|
|
|
7
7
|
const customRules = [
|
|
8
8
|
{ name: "array-bracket-newline", rule: ["error", "consistent"] },
|
|
9
9
|
{ name: "array-element-newline", rule: ["error", "consistent"] },
|
|
10
|
-
{
|
|
10
|
+
{
|
|
11
|
+
name: "comma-dangle",
|
|
12
|
+
rule: [
|
|
13
|
+
"error",
|
|
14
|
+
{
|
|
15
|
+
arrays: "always-multiline",
|
|
16
|
+
objects: "always-multiline",
|
|
17
|
+
imports: "always-multiline",
|
|
18
|
+
exports: "always-multiline",
|
|
19
|
+
functions: "always-multiline",
|
|
20
|
+
enums: "never",
|
|
21
|
+
generics: "never",
|
|
22
|
+
tuples: "never",
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
},
|
|
11
26
|
{ name: "dot-location", rule: ["error", "property"] },
|
|
12
27
|
{ name: "function-call-argument-newline", rule: ["error", "consistent"] },
|
|
13
28
|
{ name: "function-paren-newline", rule: ["error", "consistent"] },
|