eslint-plugin-th-rules 1.7.0 → 1.8.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 +19 -0
- package/bun.lockb +0 -0
- package/package.json +5 -2
- package/src/index.js +13 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
## [1.8.1](https://github.com/tomerh2001/eslint-plugin-th-rules/compare/v1.8.0...v1.8.1) (2024-06-15)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* Disable TypeScript ESLint strict rules and unsafe checks ([bf186fb](https://github.com/tomerh2001/eslint-plugin-th-rules/commit/bf186fbc8216a520b59e24e7861c47ee0f281680))
|
|
7
|
+
|
|
8
|
+
# [1.8.0](https://github.com/tomerh2001/eslint-plugin-th-rules/compare/v1.7.0...v1.8.0) (2024-06-15)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* Remove eslint-plugin-github from recommended config ([989a59f](https://github.com/tomerh2001/eslint-plugin-th-rules/commit/989a59f47ff67864499a8ee7f34354feccae71a9))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
* Added typescript-eslint strict rules ([be91f38](https://github.com/tomerh2001/eslint-plugin-th-rules/commit/be91f38d1f2a1f452d0b92755d58ce728b544066))
|
|
19
|
+
|
|
1
20
|
# [1.7.0](https://github.com/tomerh2001/eslint-plugin-th-rules/compare/v1.6.1...v1.7.0) (2024-06-15)
|
|
2
21
|
|
|
3
22
|
|
package/bun.lockb
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-th-rules",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.1",
|
|
4
4
|
"description": "A List of custom ESLint rules created by Tomer Horowitz",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -21,7 +21,6 @@
|
|
|
21
21
|
"eslint-config-jsdoc": "^15.4.0",
|
|
22
22
|
"eslint-config-xo": "^0.45.0",
|
|
23
23
|
"eslint-config-xo-react": "^0.27.0",
|
|
24
|
-
"eslint-plugin-github": "^5.0.1",
|
|
25
24
|
"eslint-plugin-jsdoc": "^48.2.12",
|
|
26
25
|
"eslint-plugin-react": "^7.34.2",
|
|
27
26
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
@@ -31,12 +30,14 @@
|
|
|
31
30
|
},
|
|
32
31
|
"devDependencies": {
|
|
33
32
|
"@codedependant/semantic-release-docker": "^5.0.3",
|
|
33
|
+
"@eslint/js": "^9.5.0",
|
|
34
34
|
"@semantic-release/changelog": "^6.0.3",
|
|
35
35
|
"@semantic-release/commit-analyzer": "^13.0.0",
|
|
36
36
|
"@semantic-release/git": "^10.0.1",
|
|
37
37
|
"@semantic-release/github": "^10.0.6",
|
|
38
38
|
"@semantic-release/npm": "^12.0.1",
|
|
39
39
|
"@semantic-release/release-notes-generator": "^14.0.0",
|
|
40
|
+
"@types/eslint__js": "^8.42.3",
|
|
40
41
|
"@types/requireindex": "^1.2.4",
|
|
41
42
|
"@types/xo": "^0.39.8",
|
|
42
43
|
"bun-types": "latest",
|
|
@@ -48,6 +49,8 @@
|
|
|
48
49
|
"eslint-plugin-unicorn": "^54.0.0",
|
|
49
50
|
"mocha": "^10.4.0",
|
|
50
51
|
"npm-run-all": "^4.1.5",
|
|
52
|
+
"typescript": "^5.4.5",
|
|
53
|
+
"typescript-eslint": "^7.13.0",
|
|
51
54
|
"xo": "^0.58.0"
|
|
52
55
|
},
|
|
53
56
|
"peerDependencies": {
|
package/src/index.js
CHANGED
|
@@ -5,8 +5,12 @@
|
|
|
5
5
|
const requireIndex = require('requireindex');
|
|
6
6
|
|
|
7
7
|
const recommended = {
|
|
8
|
-
plugins: ['th-rules', '
|
|
9
|
-
extends: [
|
|
8
|
+
plugins: ['th-rules', 'sonarjs'],
|
|
9
|
+
extends: [
|
|
10
|
+
'plugin:@typescript-eslint/strict-type-checked',
|
|
11
|
+
'plugin:@typescript-eslint/stylistic-type-checked',
|
|
12
|
+
'plugin:sonarjs/recommended-legacy',
|
|
13
|
+
],
|
|
10
14
|
rules: {
|
|
11
15
|
'th-rules/no-destructuring': 'error',
|
|
12
16
|
'th-rules/no-default-export': 'error',
|
|
@@ -21,6 +25,13 @@ const recommended = {
|
|
|
21
25
|
'unicorn/no-await-expression-member': 'off',
|
|
22
26
|
'@typescript-eslint/no-duplicate-type-constituents': 'off',
|
|
23
27
|
'new-cap': 'off',
|
|
28
|
+
'@typescript-eslint/no-non-null-assertion': 'off',
|
|
29
|
+
'@typescript-eslint/require-await': 'off',
|
|
30
|
+
'@typescript-eslint/no-unsafe-member-access': 'off',
|
|
31
|
+
'@typescript-eslint/no-unsafe-call': 'off',
|
|
32
|
+
'@typescript-eslint/no-unsafe-return': 'off',
|
|
33
|
+
'@typescript-eslint/no-unsafe-argument': 'off',
|
|
34
|
+
'no-await-in-loop': 'off',
|
|
24
35
|
camelcase: 'warn',
|
|
25
36
|
},
|
|
26
37
|
env: {
|