eslint-plugin-th-rules 2.0.4 → 2.1.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/CHANGELOG.md +14 -0
- package/package.json +4 -2
- package/src/index.js +7 -3
- package/xo.config.ts +2 -0
- package/.xo-config.json +0 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [2.1.1](https://github.com/tomerh2001/eslint-plugin-th-rules/compare/v2.1.0...v2.1.1) (2026-01-10)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* update base recommended rules to disable specific TypeScript and lodash rules ([6b4c240](https://github.com/tomerh2001/eslint-plugin-th-rules/commit/6b4c24062199bd8dda59407a844ae545903f8ddc))
|
|
7
|
+
|
|
8
|
+
# [2.1.0](https://github.com/tomerh2001/eslint-plugin-th-rules/compare/v2.0.4...v2.1.0) (2026-01-09)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* migrate to ES module syntax and update dependencies; remove unused config ([b225e2c](https://github.com/tomerh2001/eslint-plugin-th-rules/commit/b225e2c0260152009c011a5b445ed2c67f665ce5))
|
|
14
|
+
|
|
1
15
|
## [2.0.4](https://github.com/tomerh2001/eslint-plugin-th-rules/compare/v2.0.3...v2.0.4) (2026-01-08)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-th-rules",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "A List of custom ESLint rules created by Tomer Horowitz",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"eslint-plugin-sonarjs": "^3.0.5",
|
|
35
35
|
"eslint-plugin-unicorn": "^62.0.0",
|
|
36
36
|
"globals": "^17.0.0",
|
|
37
|
+
"lodash": "^4.17.21",
|
|
37
38
|
"requireindex": "^1.2.0"
|
|
38
39
|
},
|
|
39
40
|
"devDependencies": {
|
|
@@ -47,6 +48,7 @@
|
|
|
47
48
|
"@semantic-release/release-notes-generator": "^14.1.0",
|
|
48
49
|
"@types/eslint-plugin-security": "^3.0.0",
|
|
49
50
|
"@types/eslint__js": "^9.14.0",
|
|
51
|
+
"@types/lodash": "^4",
|
|
50
52
|
"@types/requireindex": "^1.2.4",
|
|
51
53
|
"@types/xo": "^0.39.9",
|
|
52
54
|
"bun-types": "latest",
|
|
@@ -54,7 +56,7 @@
|
|
|
54
56
|
"eslint-doc-generator": "^3.0.2",
|
|
55
57
|
"eslint-plugin-eslint-plugin": "^7.2.0",
|
|
56
58
|
"eslint-plugin-node": "^11.1.0",
|
|
57
|
-
"eslint-plugin-th-rules": "
|
|
59
|
+
"eslint-plugin-th-rules": "2.0.4",
|
|
58
60
|
"mocha": "^11.7.5",
|
|
59
61
|
"npm-run-all": "^4.1.5",
|
|
60
62
|
"typescript": "^5.9.3",
|
package/src/index.js
CHANGED
|
@@ -65,7 +65,6 @@ const baseRecommended = {
|
|
|
65
65
|
'th-rules/top-level-functions': 'error',
|
|
66
66
|
'th-rules/schemas-in-schemas-file': 'error',
|
|
67
67
|
'th-rules/types-in-dts': 'error',
|
|
68
|
-
|
|
69
68
|
'unicorn/filename-case': 'off',
|
|
70
69
|
'unicorn/no-array-callback-reference': 'off',
|
|
71
70
|
'import/extensions': 'off',
|
|
@@ -74,9 +73,10 @@ const baseRecommended = {
|
|
|
74
73
|
'new-cap': 'off',
|
|
75
74
|
'no-await-in-loop': 'off',
|
|
76
75
|
'n/file-extension-in-import': 'off',
|
|
76
|
+
'n/prefer-global/buffer': 'off',
|
|
77
|
+
'n/prefer-global/process': 'off',
|
|
77
78
|
'import/no-cycle': 'off',
|
|
78
79
|
camelcase: 'warn',
|
|
79
|
-
|
|
80
80
|
'sonarjs/mouse-events-a11y': 'off',
|
|
81
81
|
'sonarjs/no-unstable-nested-components': 'off',
|
|
82
82
|
'unicorn/prefer-global-this': 'off',
|
|
@@ -84,6 +84,11 @@ const baseRecommended = {
|
|
|
84
84
|
'sonarjs/no-clear-text-protocols': 'off',
|
|
85
85
|
'security/detect-unsafe-regex': 'off',
|
|
86
86
|
'lodash/import-scope': [2, 'full'],
|
|
87
|
+
'@typescript-eslint/ban-types': 'off',
|
|
88
|
+
'@typescript-eslint/naming-convention': 'off',
|
|
89
|
+
'@typescript-eslint/no-restricted-types': 'off',
|
|
90
|
+
'import-x/extensions': 'off',
|
|
91
|
+
'lodash/chaining': ['error', 'implicit'],
|
|
87
92
|
},
|
|
88
93
|
};
|
|
89
94
|
|
|
@@ -108,7 +113,6 @@ plugin.configs['recommended-typescript'] = flatConfigs(
|
|
|
108
113
|
},
|
|
109
114
|
},
|
|
110
115
|
rules: {
|
|
111
|
-
'@typescript-eslint/naming-convention': 'warn',
|
|
112
116
|
'@typescript-eslint/consistent-type-definitions': 'off',
|
|
113
117
|
'@typescript-eslint/no-extraneous-class': 'off',
|
|
114
118
|
'@typescript-eslint/no-duplicate-type-constituents': 'off',
|
package/xo.config.ts
ADDED