eslint-plugin-th-rules 3.1.3 → 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 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["recommendedTypescript"]
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["recommendedReact"]
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
 
@@ -1 +1 @@
1
- {"version":3,"file":"typescript.d.ts","sourceRoot":"","sources":["../../../src/configs/core/typescript.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,iBAAiB,EAAC,MAAM,mBAAmB,CAAC;AAExE,eAAO,MAAM,cAAc,EAAE,iBAAiB,EAiB7C,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"typescript.d.ts","sourceRoot":"","sources":["../../../src/configs/core/typescript.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,iBAAiB,EAAC,MAAM,mBAAmB,CAAC;AAExE,eAAO,MAAM,cAAc,EAAE,iBAAiB,EAmB7C,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -14,6 +14,8 @@ export const coreTypescript = [
14
14
  '@typescript-eslint/no-unsafe-call': 'off',
15
15
  '@typescript-eslint/no-unsafe-return': 'off',
16
16
  '@typescript-eslint/no-unsafe-argument': 'off',
17
+ '@typescript-eslint/no-restricted-types': 'off',
18
+ '@typescript-eslint/naming-convention': 'off',
17
19
  },
18
20
  },
19
21
  ];
@@ -1 +1 @@
1
- {"version":3,"file":"opinionated.d.ts","sourceRoot":"","sources":["../../../src/configs/externals/opinionated.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,iBAAiB,EAAC,MAAM,mBAAmB,CAAC;AAEzD,eAAO,MAAM,oBAAoB,EAAE,iBAAiB,EAWnD,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
1
+ {"version":3,"file":"opinionated.d.ts","sourceRoot":"","sources":["../../../src/configs/externals/opinionated.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,KAAK,iBAAiB,EAAC,MAAM,mBAAmB,CAAC;AAEzD,eAAO,MAAM,oBAAoB,EAAE,iBAAiB,EAanD,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/naming-convention */
1
2
  export const externalsOpinionated = [
2
3
  {
3
4
  name: 'th-rules/externals-opinionated',
@@ -7,6 +8,8 @@ export const externalsOpinionated = [
7
8
  camelcase: 'warn',
8
9
  'security/detect-unsafe-regex': 'off',
9
10
  'sonarjs/no-clear-text-protocols': 'off',
11
+ 'import-x/extensions': 'off',
12
+ 'unicorn/filename-case': 'off',
10
13
  },
11
14
  },
12
15
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-th-rules",
3
- "version": "3.1.3",
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",