Skip to content

Commit db6fad0

Browse files
committed
docs: update README and rule documentation for top-level functions to reflect enabled configs
1 parent 0bee66f commit db6fad0

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ This repository contains custom ESLint rules to enhance code quality and consist
2323
| [no-comments](docs/rules/no-comments.md) | Disallow comments except for specified allowed patterns. |![badge-recommended-react][] ![badge-recommended-typescript][] | 🔧 |
2424
| [no-default-export](docs/rules/no-default-export.md) | Convert unnamed default exports to named default exports based on the file name. |![badge-recommended-react][] ![badge-recommended-typescript][] | 🔧 |
2525
| [no-destructuring](docs/rules/no-destructuring.md) | Disallow destructuring that does not meet certain conditions |![badge-recommended-react][] ![badge-recommended-typescript][] | |
26-
| [top-level-functions](docs/rules/top-level-functions.md) | Require all top-level functions to be named/regular functions. | | 🔧 |
26+
| [top-level-functions](docs/rules/top-level-functions.md) | Require all top-level functions to be named/regular functions. | ![badge-recommended-react][] ![badge-recommended-typescript][] | 🔧 |
2727

2828
<!-- end auto-generated rules list -->
2929

docs/rules/top-level-functions.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Require all top-level functions to be named/regular functions (`th-rules/top-level-functions`)
22

3+
💼 This rule is enabled in the following configs: ✅ `recommended`, `recommended-react`, `recommended-typescript`.
4+
35
🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
46

57
<!-- end auto-generated rule header -->

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"eslint-plugin-eslint-plugin": "^6.4.0",
5050
"eslint-plugin-node": "^11.1.0",
5151
"eslint-plugin-sonarjs": "^3.0.1",
52-
"eslint-plugin-th-rules": "1.14.1",
52+
"eslint-plugin-th-rules": "1.15.6",
5353
"eslint-plugin-unicorn": "^56.0.1",
5454
"mocha": "^11.0.1",
5555
"npm-run-all": "^4.1.5",

yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4420,9 +4420,9 @@ __metadata:
44204420
languageName: node
44214421
linkType: hard
44224422

4423-
"eslint-plugin-th-rules@npm:1.14.1":
4424-
version: 1.14.1
4425-
resolution: "eslint-plugin-th-rules@npm:1.14.1"
4423+
"eslint-plugin-th-rules@npm:1.15.6":
4424+
version: 1.15.6
4425+
resolution: "eslint-plugin-th-rules@npm:1.15.6"
44264426
dependencies:
44274427
"@babel/eslint-parser": "npm:^7.25.9"
44284428
eslint-config-jsdoc: "npm:^15.4.0"
@@ -4438,7 +4438,7 @@ __metadata:
44384438
peerDependencies:
44394439
eslint: ">=9.17.0"
44404440
typescript: ^5.7.2
4441-
checksum: 10c0/1dccd3682fc42f75f1b546220d5f09362ca6e64c11c9adacde12936c4bcb7f17fbae4ccba71a7ef2fe94c895f7989347b0615503b25fcd2000742c7b99f251b2
4441+
checksum: 10c0/fa905351da8172e055b38e31a39605c1449c6865b893fa5006c0fca7ecb55358b964f2d49bcd6bb651f8fc7702465fdfcee6f37e066964de35fc202c2093a86b
44424442
languageName: node
44434443
linkType: hard
44444444

@@ -4473,7 +4473,7 @@ __metadata:
44734473
eslint-plugin-react-native: "npm:^5.0.0"
44744474
eslint-plugin-security: "npm:^3.0.1"
44754475
eslint-plugin-sonarjs: "npm:^3.0.1"
4476-
eslint-plugin-th-rules: "npm:1.14.1"
4476+
eslint-plugin-th-rules: "npm:1.15.6"
44774477
eslint-plugin-unicorn: "npm:^56.0.1"
44784478
mocha: "npm:^11.0.1"
44794479
npm-run-all: "npm:^4.1.5"

0 commit comments

Comments
 (0)