@ethang/eslint-config 19.2.6 → 19.2.7-beta.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,7 +5,7 @@
5
5
  > [!CAUTION]
6
6
  > Do not use this with Prettier! Styling rules are included.
7
7
 
8
- - 883 errored rules.
8
+ - 884 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)
@@ -22,6 +22,7 @@
22
22
  - 2 rules from [@eslint/json](https://github.com/eslint/json)
23
23
  - 1 rule from [eslint-plugin-depend](https://github.com/es-tooling/eslint-plugin-depend/tree/main)
24
24
  - 1 rule from [eslint-plugin-compat](https://github.com/amilajack/eslint-plugin-compat)
25
+ - 1 rule from [@ethang/eslint-plugin](https://github.com/eglove/eslint-plugin)
25
26
 
26
27
  # Add Even More!
27
28
 
@@ -20,6 +20,7 @@ import { jsonRules } from "../setup/json.js";
20
20
  import { astroRules } from "../setup/astro.js";
21
21
  import { reactRules } from "../setup/react.js";
22
22
  import { solidRules } from "../setup/solid.js";
23
+ import { ethangRules } from "../setup/ethang.js";
23
24
 
24
25
  export const updateReadme = () => {
25
26
  const md = new MarkdownGenerator();
@@ -123,6 +124,11 @@ export const updateReadme = () => {
123
124
  name: "@eslint/json",
124
125
  url: "https://github.com/eslint/json",
125
126
  },
127
+ {
128
+ list: ethangRules,
129
+ name: "@ethang/eslint-plugin",
130
+ url: "https://github.com/eglove/eslint-plugin",
131
+ },
126
132
  ];
127
133
 
128
134
  let total = 0;
@@ -18,6 +18,7 @@ import { deprecatedRules } from "../setup/deprecated.js";
18
18
  import { markdownRules } from "../setup/markdown.js";
19
19
  import { jsonRules } from "../setup/json.js";
20
20
  import { getLatestReact } from "./get-react-version.mjs";
21
+ import { ethangRules } from "../setup/ethang.js";
21
22
 
22
23
  export const updateRules = async () => {
23
24
  let configFile = "";
@@ -36,6 +37,7 @@ export const updateRules = async () => {
36
37
  ...unicornRules,
37
38
  ...lodashRules,
38
39
  ...sonarRules,
40
+ ...ethangRules,
39
41
  ...tanstackQueryRules,
40
42
  ...tailwindRules,
41
43
  ...stylisticRules,
@@ -66,6 +68,7 @@ export const updateRules = async () => {
66
68
  'import markdown from "@eslint/markdown";',
67
69
  'import json from "@eslint/json";',
68
70
  'import { ignores } from "./constants.js";',
71
+ 'import ethang from "@ethang/eslint-plugin";',
69
72
  ].sort((a, b) => {
70
73
  return a.localeCompare(b);
71
74
  });
@@ -97,6 +100,7 @@ export default tseslint.config(
97
100
  barrel,
98
101
  compat,
99
102
  depend,
103
+ ethang,
100
104
  lodash: lodashConfig,
101
105
  n,
102
106
  perfectionist,
package/eslint.config.js CHANGED
@@ -3,6 +3,7 @@ import a11y from "eslint-plugin-jsx-a11y/lib/index.js";
3
3
  import barrel from "eslint-plugin-barrel-files";
4
4
  import compat from "eslint-plugin-compat";
5
5
  import depend from "eslint-plugin-depend";
6
+ import ethang from "@ethang/eslint-plugin";
6
7
  import json from "@eslint/json";
7
8
  import lodashConfig from "eslint-plugin-lodash";
8
9
  import markdown from "@eslint/markdown";
@@ -39,6 +40,7 @@ export default tseslint.config(
39
40
  barrel,
40
41
  compat,
41
42
  depend,
43
+ ethang,
42
44
  lodash: lodashConfig,
43
45
  n,
44
46
  perfectionist,
@@ -938,6 +940,7 @@ export default tseslint.config(
938
940
  "sonar/x-powered-by": "error",
939
941
  "sonar/xml-parser-xxe": "error",
940
942
  "sonar/xpath": "off",
943
+ "ethang/handle-native-error": "error",
941
944
  "@tanstack/query/exhaustive-deps": "error",
942
945
  "@tanstack/query/stable-query-client": "error",
943
946
  "@tanstack/query/no-rest-destructuring": "error",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethang/eslint-config",
3
- "version": "19.2.6",
3
+ "version": "19.2.7-beta.0",
4
4
  "repository": {
5
5
  "url": "git+https://github.com/eglove/eslint-config-ethang.git"
6
6
  },
@@ -13,10 +13,11 @@
13
13
  "lint": "prettier . -w"
14
14
  },
15
15
  "dependencies": {
16
- "@eslint-react/eslint-plugin": "^1.12.3",
16
+ "@eslint-react/eslint-plugin": "^1.12.4",
17
17
  "@eslint/js": "^9.9.1",
18
18
  "@eslint/json": "^0.4.0",
19
19
  "@eslint/markdown": "^6.0.0",
20
+ "@ethang/eslint-plugin": "^0.0.3",
20
21
  "@stylistic/eslint-plugin": "^2.7.2",
21
22
  "@tanstack/eslint-plugin-query": "^5.53.0",
22
23
  "@typescript-eslint/parser": "^8.3.0",
@@ -39,16 +40,17 @@
39
40
  },
40
41
  "devDependencies": {
41
42
  "@ethang/markdown-generator": "^1.1.1",
42
- "@ethang/project-builder": "^2.5.1",
43
+ "@ethang/project-builder": "^2.5.4",
43
44
  "@tsconfig/node-lts": "^20.1.3",
44
45
  "@tsconfig/strictest": "^2.0.5",
45
46
  "prettier": "^3.3.3"
46
47
  },
47
48
  "peerDependencies": {
48
- "@eslint-react/eslint-plugin": "^1.12.3",
49
+ "@eslint-react/eslint-plugin": "^1.12.4",
49
50
  "@eslint/js": "^9.9.1",
50
51
  "@eslint/json": "^0.4.0",
51
52
  "@eslint/markdown": "^6.0.0",
53
+ "@ethang/eslint-plugin": "^0.0.3",
52
54
  "@stylistic/eslint-plugin": "^2.7.2",
53
55
  "@tanstack/eslint-plugin-query": "^5.53.0",
54
56
  "@typescript-eslint/parser": "^8.3.0",
@@ -0,0 +1,6 @@
1
+ import ethang from "@ethang/eslint-plugin";
2
+ import { genRules } from "./gen-rules.js";
3
+
4
+ const ruleNames = Object.keys(ethang.rules);
5
+
6
+ export const ethangRules = genRules(ruleNames, [], "ethang");