eslint-plugin-th-rules 3.1.4 → 3.1.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 +17 -2
- package/package.json +7 -9
package/README.md
CHANGED
|
@@ -20,6 +20,10 @@ This plugin provides:
|
|
|
20
20
|
```bash
|
|
21
21
|
npm install --save-dev eslint-plugin-th-rules
|
|
22
22
|
```
|
|
23
|
+
or
|
|
24
|
+
```bash
|
|
25
|
+
yarn add -D eslint-plugin-th-rules
|
|
26
|
+
```
|
|
23
27
|
|
|
24
28
|
This plugin requires ESLint Flat Config (ESLint 8.21+).
|
|
25
29
|
|
|
@@ -56,7 +60,7 @@ Recommended plus full strict/stylistic TypeScript configurations.
|
|
|
56
60
|
import thRules from "eslint-plugin-th-rules";
|
|
57
61
|
|
|
58
62
|
export default [
|
|
59
|
-
...thRules.configs
|
|
63
|
+
...thRules.configs.recommendedTypescript
|
|
60
64
|
];
|
|
61
65
|
```
|
|
62
66
|
|
|
@@ -72,7 +76,18 @@ Recommended plus:
|
|
|
72
76
|
import thRules from "eslint-plugin-th-rules";
|
|
73
77
|
|
|
74
78
|
export default [
|
|
75
|
-
...thRules.configs
|
|
79
|
+
...thRules.configs.recommendedReact
|
|
80
|
+
];
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## Recommended + TypeScript + React
|
|
84
|
+
Recommended plus TypeScript and React extensions.
|
|
85
|
+
|
|
86
|
+
```js
|
|
87
|
+
import thRules from "eslint-plugin-th-rules";
|
|
88
|
+
|
|
89
|
+
export default [
|
|
90
|
+
...thRules.configs.recommendedTypescriptReact
|
|
76
91
|
];
|
|
77
92
|
```
|
|
78
93
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-th-rules",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.5",
|
|
4
4
|
"description": "A List of custom ESLint rules created by Tomer Horowitz",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -25,6 +25,10 @@
|
|
|
25
25
|
"@babel/eslint-parser": "^7.28.6",
|
|
26
26
|
"@eslint/eslintrc": "^3.3.3",
|
|
27
27
|
"@leancodepl/resolve-eslint-flat-config": "^9.7.0",
|
|
28
|
+
"@typescript-eslint/eslint-plugin": "^8.53.0",
|
|
29
|
+
"@typescript-eslint/parser": "^8.53.0",
|
|
30
|
+
"@typescript-eslint/rule-tester": "^8.53.0",
|
|
31
|
+
"@typescript-eslint/utils": "^8.53.0",
|
|
28
32
|
"eslint-config-jsdoc": "^15.4.0",
|
|
29
33
|
"eslint-config-xo": "^0.49.0",
|
|
30
34
|
"eslint-config-xo-react": "^0.29.0",
|
|
@@ -40,7 +44,8 @@
|
|
|
40
44
|
"eslint-plugin-unicorn": "^62.0.0",
|
|
41
45
|
"globals": "^17.0.0",
|
|
42
46
|
"lodash": "^4.17.21",
|
|
43
|
-
"requireindex": "^1.2.0"
|
|
47
|
+
"requireindex": "^1.2.0",
|
|
48
|
+
"typescript-eslint": "^8.53.0"
|
|
44
49
|
},
|
|
45
50
|
"devDependencies": {
|
|
46
51
|
"@codedependant/semantic-release-docker": "^5.1.1",
|
|
@@ -58,15 +63,9 @@
|
|
|
58
63
|
"@types/node": "^25.0.9",
|
|
59
64
|
"@types/requireindex": "^1.2.4",
|
|
60
65
|
"@types/xo": "^0.39.9",
|
|
61
|
-
"@typescript-eslint/eslint-plugin": "^8.53.0",
|
|
62
|
-
"@typescript-eslint/parser": "^8.53.0",
|
|
63
|
-
"@typescript-eslint/rule-tester": "^8.53.0",
|
|
64
|
-
"@typescript-eslint/utils": "^8.53.0",
|
|
65
66
|
"bun-types": "latest",
|
|
66
67
|
"eslint": "^9.39.2",
|
|
67
68
|
"eslint-doc-generator": "^3.0.2",
|
|
68
|
-
"eslint-plugin-eslint-plugin": "^7.3.0",
|
|
69
|
-
"eslint-plugin-node": "^11.1.0",
|
|
70
69
|
"eslint-plugin-th-rules": "2.7.1",
|
|
71
70
|
"jest": "^30.2.0",
|
|
72
71
|
"mocha": "^11.7.5",
|
|
@@ -74,7 +73,6 @@
|
|
|
74
73
|
"semantic-release": "^25.0.2",
|
|
75
74
|
"ts-jest": "^29.4.6",
|
|
76
75
|
"typescript": "^5.9.3",
|
|
77
|
-
"typescript-eslint": "^8.53.0",
|
|
78
76
|
"xo": "^1.2.3"
|
|
79
77
|
},
|
|
80
78
|
"license": "ISC",
|