@ethang/eslint-config 17.0.6 → 17.0.8
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 +7 -5
- package/eslint.config.js +1 -0
- package/package.json +13 -10
package/README.md
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
# Opinionated, Strict, Brutal, Unforgiving
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
[View Config](https://eslint-config-ethang.pages.dev/rules)
|
|
4
|
+
|
|
5
|
+
* 589 errored rules.
|
|
6
|
+
* 140 rules from vanilla EsLint
|
|
5
7
|
* 112 rules from [sindresorhus/eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn)
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
+
* 102 rules from [@typescript/eslint](https://github.com/typescript-eslint/typescript-eslint)
|
|
9
|
+
* 74 rules from [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react)
|
|
8
10
|
* 51 rules from [eslint-plugin-astro](https://www.npmjs.com/package/eslint-plugin-astro)
|
|
9
11
|
* 35 rules from [jsx-a11y](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y)
|
|
10
12
|
* 32 rules from [eslint-plugin-sonarjs](https://github.com/SonarSource/eslint-plugin-sonarjs)
|
|
11
|
-
*
|
|
13
|
+
* 20 rules from [eslint-plugin-n](https://github.com/eslint-community/eslint-plugin-n/tree/67bbfdf3c6862dcbfe455a4afbd83fa60f9d1ea4)
|
|
12
14
|
* 17 rules from [eslint-plugin-perfectionist](https://github.com/azat-io/eslint-plugin-perfectionist)
|
|
13
15
|
* 3 rules from [@tanstack/eslint-plugin-query](https://tanstack.com/query/latest/docs/eslint/eslint-plugin-query)
|
|
14
16
|
* 2 rules from [eslint-plugin-react-hooks](https://github.com/facebook/react/tree/main/packages/eslint-plugin-react-hooks)
|
package/eslint.config.js
CHANGED
|
@@ -204,6 +204,7 @@ export default tseslint.config(
|
|
|
204
204
|
rules: {
|
|
205
205
|
"accessor-pairs": "error",
|
|
206
206
|
"array-callback-return": "error",
|
|
207
|
+
"arrow-body-style": ["error", "always"],
|
|
207
208
|
"block-scoped-var": "error",
|
|
208
209
|
"callback-return": "off", // deprecated
|
|
209
210
|
camelcase: "off", // not useful
|
package/package.json
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ethang/eslint-config",
|
|
3
|
-
"version": "17.0.
|
|
3
|
+
"version": "17.0.8",
|
|
4
4
|
"repository": {
|
|
5
5
|
"url": "git+https://github.com/eglove/eslint-config-ethang.git"
|
|
6
6
|
},
|
|
7
7
|
"main": "eslint.config.js",
|
|
8
8
|
"scripts": {
|
|
9
|
-
"lint": "eslint . --fix",
|
|
10
|
-
"build": "
|
|
9
|
+
"lint": "eslint . --fix --ignore-pattern=\".eslint-config-inspector\"",
|
|
10
|
+
"build": "pnpx @eslint/config-inspector build"
|
|
11
|
+
},
|
|
12
|
+
"engines": {
|
|
13
|
+
"node": ">=20"
|
|
11
14
|
},
|
|
12
15
|
"type": "module",
|
|
13
16
|
"author": "Ethan Glover",
|
|
@@ -15,7 +18,7 @@
|
|
|
15
18
|
"peerDependencies": {
|
|
16
19
|
"@eslint/js": "^9.5.0",
|
|
17
20
|
"@tanstack/eslint-plugin-query": "^5.43.1",
|
|
18
|
-
"@typescript-eslint/parser": "^7.13.
|
|
21
|
+
"@typescript-eslint/parser": "^7.13.1",
|
|
19
22
|
"eslint": "^9.5.0",
|
|
20
23
|
"eslint-config-prettier": "^9.1.0",
|
|
21
24
|
"eslint-plugin-astro": "^1.2.2",
|
|
@@ -23,18 +26,18 @@
|
|
|
23
26
|
"eslint-plugin-n": "^17.9.0",
|
|
24
27
|
"eslint-plugin-perfectionist": "^2.11.0",
|
|
25
28
|
"eslint-plugin-prettier": "^5.1.3",
|
|
26
|
-
"eslint-plugin-react": "^7.34.
|
|
29
|
+
"eslint-plugin-react": "^7.34.3",
|
|
27
30
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
28
31
|
"eslint-plugin-sonarjs": "^1.0.3",
|
|
29
32
|
"eslint-plugin-unicorn": "^54.0.0",
|
|
30
33
|
"prettier": "^3.3.2",
|
|
31
34
|
"typescript": "^5.4.5",
|
|
32
|
-
"typescript-eslint": "^7.13.
|
|
35
|
+
"typescript-eslint": "^7.13.1"
|
|
33
36
|
},
|
|
34
37
|
"dependencies": {
|
|
35
38
|
"@eslint/js": "^9.5.0",
|
|
36
39
|
"@tanstack/eslint-plugin-query": "^5.43.1",
|
|
37
|
-
"@typescript-eslint/parser": "^7.13.
|
|
40
|
+
"@typescript-eslint/parser": "^7.13.1",
|
|
38
41
|
"eslint": "^9.5.0",
|
|
39
42
|
"eslint-config-prettier": "^9.1.0",
|
|
40
43
|
"eslint-plugin-astro": "^1.2.2",
|
|
@@ -42,16 +45,16 @@
|
|
|
42
45
|
"eslint-plugin-n": "^17.9.0",
|
|
43
46
|
"eslint-plugin-perfectionist": "^2.11.0",
|
|
44
47
|
"eslint-plugin-prettier": "^5.1.3",
|
|
45
|
-
"eslint-plugin-react": "^7.34.
|
|
48
|
+
"eslint-plugin-react": "^7.34.3",
|
|
46
49
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
47
50
|
"eslint-plugin-sonarjs": "^1.0.3",
|
|
48
51
|
"eslint-plugin-unicorn": "^54.0.0",
|
|
49
52
|
"prettier": "^3.3.2",
|
|
50
53
|
"typescript": "^5.4.5",
|
|
51
|
-
"typescript-eslint": "^7.13.
|
|
54
|
+
"typescript-eslint": "^7.13.1"
|
|
52
55
|
},
|
|
53
56
|
"devDependencies": {
|
|
54
|
-
"@ethang/project-builder": "^1.1.
|
|
57
|
+
"@ethang/project-builder": "^1.1.40",
|
|
55
58
|
"@tsconfig/node-lts": "^20.1.3",
|
|
56
59
|
"@tsconfig/strictest": "^2.0.5"
|
|
57
60
|
}
|