@ethang/eslint-config 19.3.0 → 19.4.1

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
- - 885 errored rules.
8
+ - 886 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
  - 145 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)
@@ -14,7 +14,7 @@
14
14
  - 42 rules from [eslint-plugin-lodash](https://github.com/wix-incubator/eslint-plugin-lodash)
15
15
  - 35 rules from [jsx-a11y](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y)
16
16
  - 20 rules from [eslint-plugin-n](https://github.com/eslint-community/eslint-plugin-n)
17
- - 19 rules from [eslint-plugin-perfectionist](https://github.com/azat-io/eslint-plugin-perfectionist)
17
+ - 20 rules from [eslint-plugin-perfectionist](https://github.com/azat-io/eslint-plugin-perfectionist)
18
18
  - 7 rules from [eslint-plugin-tailwindcss](https://github.com/francoismassart/eslint-plugin-tailwindcss)
19
19
  - 7 rules from [@eslint/markdown](https://github.com/eslint/markdown)
20
20
  - 4 rules from [eslint-plugin-barrel-files](https://github.com/thepassle/eslint-plugin-barrel-files)
@@ -152,3 +152,5 @@ export default tseslint.config(...config, ...astroConfig, ...reactConfig, {
152
152
 
153
153
  writeFileSync(join(import.meta.dirname, "../README.md"), md.render(), "utf8");
154
154
  };
155
+
156
+ updateReadme();
@@ -81,3 +81,5 @@ export const updateRules = async () => {
81
81
  createConfigFile(solidFile, "config.solid.js"),
82
82
  ]);
83
83
  };
84
+
85
+ await updateRules();
package/build.mjs CHANGED
@@ -1,15 +1,14 @@
1
1
  // @ts-check
2
2
  import { projectBuilder } from "@ethang/project-builder/project-builder.js";
3
- import { updateRules } from "./build/update-rules.js";
4
- import { updateReadme } from "./build/update-readme.js";
3
+ import { execSync } from "node:child_process";
5
4
 
6
5
  await projectBuilder("eslint-config-ethang", "master", {
7
6
  isLibrary: true,
8
7
  scripts: ["UPDATE", "DEDUPE", "LINT"],
9
8
  postInstall: async () => {
10
9
  console.log("Updating Rules...");
11
- await updateRules();
12
- updateReadme();
10
+ execSync(`pnpx tsx ./build/update-rules.js`, { stdio: "inherit" });
11
+ execSync(`pnpx tsx ./build/update-readme.js`, { stdio: "inherit" });
13
12
  },
14
13
  tsupOptions: {
15
14
  bundle: true,
package/eslint.config.js CHANGED
@@ -1116,6 +1116,7 @@ export default tseslint.config(
1116
1116
  "perfectionist/sort-exports": "error",
1117
1117
  "perfectionist/sort-objects": "error",
1118
1118
  "perfectionist/sort-enums": "error",
1119
+ "perfectionist/sort-sets": "error",
1119
1120
  "perfectionist/sort-maps": "error",
1120
1121
  "a11y/accessible-emoji": "off",
1121
1122
  "a11y/alt-text": "error",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethang/eslint-config",
3
- "version": "19.3.0",
3
+ "version": "19.4.1",
4
4
  "repository": {
5
5
  "url": "git+https://github.com/eglove/eslint-config-ethang.git"
6
6
  },
@@ -14,14 +14,14 @@
14
14
  },
15
15
  "dependencies": {
16
16
  "@eslint-react/eslint-plugin": "^1.13.0",
17
- "@eslint/js": "^9.9.1",
17
+ "@eslint/js": "^9.10.0",
18
18
  "@eslint/json": "^0.4.0",
19
- "@eslint/markdown": "^6.0.0",
19
+ "@eslint/markdown": "^6.1.0",
20
20
  "@ethang/eslint-plugin": "^0.0.7",
21
21
  "@stylistic/eslint-plugin": "^2.7.2",
22
22
  "@tanstack/eslint-plugin-query": "^5.53.0",
23
23
  "@typescript-eslint/parser": "^8.4.0",
24
- "eslint": "^9.9.1",
24
+ "eslint": "^9.10.0",
25
25
  "eslint-plugin-astro": "^1.2.3",
26
26
  "eslint-plugin-barrel-files": "^2.1.0",
27
27
  "eslint-plugin-compat": "^6.0.0",
@@ -29,7 +29,7 @@
29
29
  "eslint-plugin-jsx-a11y": "^6.10.0",
30
30
  "eslint-plugin-lodash": "^8.0.0",
31
31
  "eslint-plugin-n": "^17.10.2",
32
- "eslint-plugin-perfectionist": "^3.3.0",
32
+ "eslint-plugin-perfectionist": "^3.4.0",
33
33
  "eslint-plugin-react-hooks": "^4.6.2",
34
34
  "eslint-plugin-solid": "^0.14.3",
35
35
  "eslint-plugin-sonarjs": "2.0.2",
@@ -47,14 +47,14 @@
47
47
  },
48
48
  "peerDependencies": {
49
49
  "@eslint-react/eslint-plugin": "^1.13.0",
50
- "@eslint/js": "^9.9.1",
50
+ "@eslint/js": "^9.10.0",
51
51
  "@eslint/json": "^0.4.0",
52
- "@eslint/markdown": "^6.0.0",
52
+ "@eslint/markdown": "^6.1.0",
53
53
  "@ethang/eslint-plugin": "^0.0.7",
54
54
  "@stylistic/eslint-plugin": "^2.7.2",
55
55
  "@tanstack/eslint-plugin-query": "^5.53.0",
56
56
  "@typescript-eslint/parser": "^8.4.0",
57
- "eslint": "^9.9.1",
57
+ "eslint": "^9.10.0",
58
58
  "eslint-plugin-astro": "^1.2.3",
59
59
  "eslint-plugin-barrel-files": "^2.1.0",
60
60
  "eslint-plugin-compat": "^6.0.0",
@@ -62,7 +62,7 @@
62
62
  "eslint-plugin-jsx-a11y": "^6.10.0",
63
63
  "eslint-plugin-lodash": "^8.0.0",
64
64
  "eslint-plugin-n": "^17.10.2",
65
- "eslint-plugin-perfectionist": "^3.3.0",
65
+ "eslint-plugin-perfectionist": "^3.4.0",
66
66
  "eslint-plugin-react-hooks": "^4.6.2",
67
67
  "eslint-plugin-solid": "^0.14.3",
68
68
  "eslint-plugin-sonarjs": "2.0.2",