eslint-plugin-th-rules 1.18.0 β 1.19.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/README.md +11 -9
- package/docs/rules/no-comments.md +4 -2
- package/docs/rules/no-default-export.md +4 -2
- package/docs/rules/no-destructuring.md +4 -2
- package/docs/rules/schemas-in-schemas-file.md +4 -2
- package/docs/rules/styles-in-styles-file.md +4 -2
- package/docs/rules/top-level-functions.md +4 -2
- package/docs/rules/types-in-dts.md +4 -2
- package/package.json +23 -23
- package/src/index.js +0 -1
- package/src/rules/types-in-dts.js +1 -1
- package/bun.lockb +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.19.1](https://github.com/tomerh2001/eslint-plugin-th-rules/compare/v1.19.0...v1.19.1) (2026-01-05)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* remove jsdoc plugin from recommended configs and clean up extends ([de220ac](https://github.com/tomerh2001/eslint-plugin-th-rules/commit/de220acd3d0c80340c7ee9b5bc2bfe2967c1c4c5))
|
|
7
|
+
|
|
8
|
+
# [1.19.0](https://github.com/tomerh2001/eslint-plugin-th-rules/compare/v1.18.0...v1.19.0) (2026-01-05)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* Added force for jsdoc in recommended configs ([6729b7a](https://github.com/tomerh2001/eslint-plugin-th-rules/commit/6729b7a4804f8a63356aff9e2ceef57119b7075d))
|
|
14
|
+
|
|
1
15
|
# [1.18.0](https://github.com/tomerh2001/eslint-plugin-th-rules/compare/v1.17.1...v1.18.0) (2026-01-05)
|
|
2
16
|
|
|
3
17
|
|
package/README.md
CHANGED
|
@@ -12,17 +12,19 @@ This repository contains custom ESLint rules to enhance code quality and consist
|
|
|
12
12
|
|
|
13
13
|
πΌ Configurations enabled in.\
|
|
14
14
|
β
Set in the `recommended` configuration.\
|
|
15
|
+
βοΈ Set in the `recommended-react` configuration.\
|
|
16
|
+
π¦ Set in the `recommended-typescript` configuration.\
|
|
15
17
|
π§ Automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/user-guide/command-line-interface#--fix).
|
|
16
18
|
|
|
17
|
-
| NameΒ Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β | Description | πΌ
|
|
18
|
-
| :--------------------------------------------------------------- | :------------------------------------------------------------------------------------- |
|
|
19
|
-
| [no-comments](docs/rules/no-comments.md) | Disallow comments except for specified allowed patterns. | β
|
|
20
|
-
| [no-default-export](docs/rules/no-default-export.md) | Convert unnamed default exports to named default exports based on the file name. | β
|
|
21
|
-
| [no-destructuring](docs/rules/no-destructuring.md) | Disallow destructuring that does not meet certain conditions | β
|
|
22
|
-
| [schemas-in-schemas-file](docs/rules/schemas-in-schemas-file.md) | Require Zod schema declarations to be placed in a .schemas.ts file | β
|
|
23
|
-
| [styles-in-styles-file](docs/rules/styles-in-styles-file.md) | Require React-Native StyleSheet.create(...) to be placed in a .styles.ts file | β
|
|
24
|
-
| [top-level-functions](docs/rules/top-level-functions.md) | Require all top-level functions to be named/regular functions. | β
|
|
25
|
-
| [types-in-dts](docs/rules/types-in-dts.md) | Require TypeScript type declarations (type/interface/enum) to be placed in .d.ts files | β
|
|
19
|
+
| NameΒ Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β | Description | πΌ | π§ |
|
|
20
|
+
| :--------------------------------------------------------------- | :------------------------------------------------------------------------------------- | :------ | :- |
|
|
21
|
+
| [no-comments](docs/rules/no-comments.md) | Disallow comments except for specified allowed patterns. | β
βοΈ π¦ | π§ |
|
|
22
|
+
| [no-default-export](docs/rules/no-default-export.md) | Convert unnamed default exports to named default exports based on the file name. | β
βοΈ π¦ | π§ |
|
|
23
|
+
| [no-destructuring](docs/rules/no-destructuring.md) | Disallow destructuring that does not meet certain conditions | β
βοΈ π¦ | |
|
|
24
|
+
| [schemas-in-schemas-file](docs/rules/schemas-in-schemas-file.md) | Require Zod schema declarations to be placed in a .schemas.ts file | β
βοΈ π¦ | |
|
|
25
|
+
| [styles-in-styles-file](docs/rules/styles-in-styles-file.md) | Require React-Native StyleSheet.create(...) to be placed in a .styles.ts file | β
βοΈ π¦ | |
|
|
26
|
+
| [top-level-functions](docs/rules/top-level-functions.md) | Require all top-level functions to be named/regular functions. | β
βοΈ π¦ | π§ |
|
|
27
|
+
| [types-in-dts](docs/rules/types-in-dts.md) | Require TypeScript type declarations (type/interface/enum) to be placed in .d.ts files | β
βοΈ π¦ | |
|
|
26
28
|
|
|
27
29
|
<!-- end auto-generated rules list -->
|
|
28
30
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
#
|
|
1
|
+
# th-rules/no-comments
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
π Disallow comments except for specified allowed patterns.
|
|
4
|
+
|
|
5
|
+
πΌ This rule is enabled in the following configs: β
`recommended`, βοΈ `recommended-react`, π¦ `recommended-typescript`.
|
|
4
6
|
|
|
5
7
|
π§ This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
|
|
6
8
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
#
|
|
1
|
+
# th-rules/no-default-export
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
π Convert unnamed default exports to named default exports based on the file name.
|
|
4
|
+
|
|
5
|
+
πΌ This rule is enabled in the following configs: β
`recommended`, βοΈ `recommended-react`, π¦ `recommended-typescript`.
|
|
4
6
|
|
|
5
7
|
π§ This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
|
|
6
8
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
#
|
|
1
|
+
# th-rules/no-destructuring
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
π Disallow destructuring that does not meet certain conditions.
|
|
4
|
+
|
|
5
|
+
πΌ This rule is enabled in the following configs: β
`recommended`, βοΈ `recommended-react`, π¦ `recommended-typescript`.
|
|
4
6
|
|
|
5
7
|
<!-- end auto-generated rule header -->
|
|
6
8
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
#
|
|
1
|
+
# th-rules/schemas-in-schemas-file
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
π Require Zod schema declarations to be placed in a .schemas.ts file.
|
|
4
|
+
|
|
5
|
+
πΌ This rule is enabled in the following configs: β
`recommended`, βοΈ `recommended-react`, π¦ `recommended-typescript`.
|
|
4
6
|
|
|
5
7
|
<!-- end auto-generated rule header -->
|
|
6
8
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
#
|
|
1
|
+
# th-rules/styles-in-styles-file
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
π Require React-Native StyleSheet.create(...) to be placed in a .styles.ts file.
|
|
4
|
+
|
|
5
|
+
πΌ This rule is enabled in the following configs: β
`recommended`, βοΈ `recommended-react`, π¦ `recommended-typescript`.
|
|
4
6
|
|
|
5
7
|
<!-- end auto-generated rule header -->
|
|
6
8
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
#
|
|
1
|
+
# th-rules/top-level-functions
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
π Require all top-level functions to be named/regular functions.
|
|
4
|
+
|
|
5
|
+
πΌ This rule is enabled in the following configs: β
`recommended`, βοΈ `recommended-react`, π¦ `recommended-typescript`.
|
|
4
6
|
|
|
5
7
|
π§ This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
|
|
6
8
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
#
|
|
1
|
+
# th-rules/types-in-dts
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
π Require TypeScript type declarations (type/interface/enum) to be placed in .d.ts files.
|
|
4
|
+
|
|
5
|
+
πΌ This rule is enabled in the following configs: β
`recommended`, βοΈ `recommended-react`, π¦ `recommended-typescript`.
|
|
4
6
|
|
|
5
7
|
<!-- end auto-generated rule header -->
|
|
6
8
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-th-rules",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.19.1",
|
|
4
4
|
"description": "A List of custom ESLint rules created by Tomer Horowitz",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -15,46 +15,46 @@
|
|
|
15
15
|
"lint:eslint-docs": "npm-run-all \"update:eslint-docs -- --check\"",
|
|
16
16
|
"lint:js": "eslint .",
|
|
17
17
|
"test": "xo && mocha tests --recursive",
|
|
18
|
-
"update:eslint-docs": "eslint-doc-generator"
|
|
18
|
+
"update:eslint-docs": "eslint-doc-generator --config-emoji \"recommended,β
\" --config-emoji \"recommended-react,βοΈ\" --config-emoji \"recommended-typescript,π¦\""
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@babel/eslint-parser": "^7.
|
|
21
|
+
"@babel/eslint-parser": "^7.28.5",
|
|
22
22
|
"eslint-config-jsdoc": "^15.4.0",
|
|
23
|
-
"eslint-config-xo": "^0.
|
|
24
|
-
"eslint-config-xo-react": "^0.
|
|
25
|
-
"eslint-plugin-jsdoc": "^
|
|
26
|
-
"eslint-plugin-react": "^7.37.
|
|
27
|
-
"eslint-plugin-react-hooks": "^
|
|
23
|
+
"eslint-config-xo": "^0.49.0",
|
|
24
|
+
"eslint-config-xo-react": "^0.29.0",
|
|
25
|
+
"eslint-plugin-jsdoc": "^61.5.0",
|
|
26
|
+
"eslint-plugin-react": "^7.37.5",
|
|
27
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
28
28
|
"eslint-plugin-react-native": "^5.0.0",
|
|
29
29
|
"eslint-plugin-security": "^3.0.1",
|
|
30
|
-
"eslint-plugin-sonarjs": "^3.0.
|
|
30
|
+
"eslint-plugin-sonarjs": "^3.0.5",
|
|
31
31
|
"requireindex": "^1.2.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@codedependant/semantic-release-docker": "^5.1.
|
|
35
|
-
"@eslint/js": "^9.
|
|
34
|
+
"@codedependant/semantic-release-docker": "^5.1.1",
|
|
35
|
+
"@eslint/js": "^9.39.2",
|
|
36
36
|
"@semantic-release/changelog": "^6.0.3",
|
|
37
|
-
"@semantic-release/commit-analyzer": "^13.0.
|
|
37
|
+
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
38
38
|
"@semantic-release/git": "^10.0.1",
|
|
39
|
-
"@semantic-release/github": "^
|
|
40
|
-
"@semantic-release/npm": "^
|
|
39
|
+
"@semantic-release/github": "^12.0.2",
|
|
40
|
+
"@semantic-release/npm": "^13.1.3",
|
|
41
41
|
"@semantic-release/release-notes-generator": "^14.0.2",
|
|
42
42
|
"@types/eslint-plugin-security": "^3.0.0",
|
|
43
|
-
"@types/eslint__js": "^
|
|
43
|
+
"@types/eslint__js": "^9.14.0",
|
|
44
44
|
"@types/requireindex": "^1.2.4",
|
|
45
45
|
"@types/xo": "^0.39.9",
|
|
46
46
|
"bun-types": "latest",
|
|
47
47
|
"eslint": "^9.17.0",
|
|
48
|
-
"eslint-doc-generator": "^
|
|
49
|
-
"eslint-plugin-eslint-plugin": "^
|
|
48
|
+
"eslint-doc-generator": "^3.0.2",
|
|
49
|
+
"eslint-plugin-eslint-plugin": "^7.2.0",
|
|
50
50
|
"eslint-plugin-node": "^11.1.0",
|
|
51
|
-
"eslint-plugin-sonarjs": "^3.0.
|
|
52
|
-
"eslint-plugin-th-rules": "1.
|
|
53
|
-
"eslint-plugin-unicorn": "^
|
|
54
|
-
"mocha": "^11.
|
|
51
|
+
"eslint-plugin-sonarjs": "^3.0.5",
|
|
52
|
+
"eslint-plugin-th-rules": "1.18.0",
|
|
53
|
+
"eslint-plugin-unicorn": "^62.0.0",
|
|
54
|
+
"mocha": "^11.7.5",
|
|
55
55
|
"npm-run-all": "^4.1.5",
|
|
56
|
-
"typescript": "^5.
|
|
57
|
-
"typescript-eslint": "^8.
|
|
56
|
+
"typescript": "^5.9.3",
|
|
57
|
+
"typescript-eslint": "^8.51.0",
|
|
58
58
|
"xo": "^0.60.0"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
package/src/index.js
CHANGED
package/bun.lockb
DELETED
|
Binary file
|