@ethang/eslint-config 19.3.0 → 19.4.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 +2 -2
- package/build/update-readme.js +2 -0
- package/build/update-rules.js +2 -0
- package/build.mjs +3 -4
- package/eslint.config.js +1 -0
- package/package.json +3 -3
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
|
+
- 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
|
-
-
|
|
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)
|
package/build/update-readme.js
CHANGED
package/build/update-rules.js
CHANGED
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 {
|
|
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
|
-
|
|
12
|
-
|
|
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
|
+
"version": "19.4.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"url": "git+https://github.com/eglove/eslint-config-ethang.git"
|
|
6
6
|
},
|
|
@@ -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.
|
|
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",
|
|
@@ -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.
|
|
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",
|