Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor generate-rules-table script #1682

Merged
merged 9 commits into from
Jan 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ jobs:
- run: npx nyc ava --update-snapshots
env:
AVA_FORCE_CI: not-ci
- run: npm run generate-rules-table
- run: npm run generate-usage-example
- run: git diff --exit-code
- uses: codecov/codecov-action@v1
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/better-regex.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Improve regexes by making them shorter, consistent, and safer

<!-- Do not manually modify RULE_NOTICE part -->
<!-- Do not manually modify RULE_NOTICE part. Run: `npm run generate-rule-notices` -->
<!-- RULE_NOTICE -->
✅ *This rule is part of the [recommended](https://github.com/sindresorhus/eslint-plugin-unicorn#recommended-config) config.*

Expand Down
2 changes: 1 addition & 1 deletion docs/rules/catch-error-name.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Enforce a specific parameter name in catch clauses

<!-- Do not manually modify RULE_NOTICE part -->
<!-- Do not manually modify RULE_NOTICE part. Run: `npm run generate-rule-notices` -->
<!-- RULE_NOTICE -->
✅ *This rule is part of the [recommended](https://github.com/sindresorhus/eslint-plugin-unicorn#recommended-config) config.*

Expand Down
2 changes: 1 addition & 1 deletion docs/rules/consistent-destructuring.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Use destructured variables over properties

<!-- Do not manually modify RULE_NOTICE part -->
<!-- Do not manually modify RULE_NOTICE part. Run: `npm run generate-rule-notices` -->
<!-- RULE_NOTICE -->
✅ *This rule is part of the [recommended](https://github.com/sindresorhus/eslint-plugin-unicorn#recommended-config) config.*

Expand Down
2 changes: 1 addition & 1 deletion docs/rules/consistent-function-scoping.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Move function definitions to the highest possible scope

<!-- Do not manually modify RULE_NOTICE part -->
<!-- Do not manually modify RULE_NOTICE part. Run: `npm run generate-rule-notices` -->
<!-- RULE_NOTICE -->
✅ *This rule is part of the [recommended](https://github.com/sindresorhus/eslint-plugin-unicorn#recommended-config) config.*
<!-- /RULE_NOTICE -->
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/custom-error-definition.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Enforce correct `Error` subclassing

<!-- Do not manually modify RULE_NOTICE part -->
<!-- Do not manually modify RULE_NOTICE part. Run: `npm run generate-rule-notices` -->
<!-- RULE_NOTICE -->
🔧 *This rule is [auto-fixable](https://eslint.org/docs/user-guide/command-line-interface#fixing-problems).*
<!-- /RULE_NOTICE -->
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/empty-brace-spaces.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Enforce no spaces between braces

<!-- Do not manually modify RULE_NOTICE part -->
<!-- Do not manually modify RULE_NOTICE part. Run: `npm run generate-rule-notices` -->
<!-- RULE_NOTICE -->
✅ *This rule is part of the [recommended](https://github.com/sindresorhus/eslint-plugin-unicorn#recommended-config) config.*

Expand Down
2 changes: 1 addition & 1 deletion docs/rules/error-message.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Enforce passing a `message` value when creating a built-in error

<!-- Do not manually modify RULE_NOTICE part -->
<!-- Do not manually modify RULE_NOTICE part. Run: `npm run generate-rule-notices` -->
<!-- RULE_NOTICE -->
✅ *This rule is part of the [recommended](https://github.com/sindresorhus/eslint-plugin-unicorn#recommended-config) config.*
<!-- /RULE_NOTICE -->
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/escape-case.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Require escape sequences to use uppercase values

<!-- Do not manually modify RULE_NOTICE part -->
<!-- Do not manually modify RULE_NOTICE part. Run: `npm run generate-rule-notices` -->
<!-- RULE_NOTICE -->
✅ *This rule is part of the [recommended](https://github.com/sindresorhus/eslint-plugin-unicorn#recommended-config) config.*

Expand Down
2 changes: 1 addition & 1 deletion docs/rules/expiring-todo-comments.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Add expiration conditions to TODO comments

<!-- Do not manually modify RULE_NOTICE part -->
<!-- Do not manually modify RULE_NOTICE part. Run: `npm run generate-rule-notices` -->
<!-- RULE_NOTICE -->
✅ *This rule is part of the [recommended](https://github.com/sindresorhus/eslint-plugin-unicorn#recommended-config) config.*
<!-- /RULE_NOTICE -->
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/explicit-length-check.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Enforce explicitly comparing the `length` or `size` property of a value

<!-- Do not manually modify RULE_NOTICE part -->
<!-- Do not manually modify RULE_NOTICE part. Run: `npm run generate-rule-notices` -->
<!-- RULE_NOTICE -->
✅ *This rule is part of the [recommended](https://github.com/sindresorhus/eslint-plugin-unicorn#recommended-config) config.*

Expand Down
2 changes: 1 addition & 1 deletion docs/rules/filename-case.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Enforce a case style for filenames

<!-- Do not manually modify RULE_NOTICE part -->
<!-- Do not manually modify RULE_NOTICE part. Run: `npm run generate-rule-notices` -->
<!-- RULE_NOTICE -->
✅ *This rule is part of the [recommended](https://github.com/sindresorhus/eslint-plugin-unicorn#recommended-config) config.*
<!-- /RULE_NOTICE -->
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/import-index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Enforce importing index files with `.`

<!-- Do not manually modify RULE_NOTICE part -->
<!-- Do not manually modify RULE_NOTICE part. Run: `npm run generate-rule-notices` -->
<!-- RULE_NOTICE -->
🔧 *This rule is [auto-fixable](https://eslint.org/docs/user-guide/command-line-interface#fixing-problems).*
<!-- /RULE_NOTICE -->
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/import-style.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Enforce specific import styles per module

<!-- Do not manually modify RULE_NOTICE part -->
<!-- Do not manually modify RULE_NOTICE part. Run: `npm run generate-rule-notices` -->
<!-- RULE_NOTICE -->
✅ *This rule is part of the [recommended](https://github.com/sindresorhus/eslint-plugin-unicorn#recommended-config) config.*
<!-- /RULE_NOTICE -->
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/new-for-builtins.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`

<!-- Do not manually modify RULE_NOTICE part -->
<!-- Do not manually modify RULE_NOTICE part. Run: `npm run generate-rule-notices` -->
<!-- RULE_NOTICE -->
✅ *This rule is part of the [recommended](https://github.com/sindresorhus/eslint-plugin-unicorn#recommended-config) config.*

Expand Down
2 changes: 1 addition & 1 deletion docs/rules/no-abusive-eslint-disable.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Enforce specifying rules to disable in `eslint-disable` comments

<!-- Do not manually modify RULE_NOTICE part -->
<!-- Do not manually modify RULE_NOTICE part. Run: `npm run generate-rule-notices` -->
<!-- RULE_NOTICE -->
✅ *This rule is part of the [recommended](https://github.com/sindresorhus/eslint-plugin-unicorn#recommended-config) config.*
<!-- /RULE_NOTICE -->
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/no-array-callback-reference.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Prevent passing a function reference directly to iterator methods

<!-- Do not manually modify RULE_NOTICE part -->
<!-- Do not manually modify RULE_NOTICE part. Run: `npm run generate-rule-notices` -->
<!-- RULE_NOTICE -->
✅ *This rule is part of the [recommended](https://github.com/sindresorhus/eslint-plugin-unicorn#recommended-config) config.*

Expand Down
2 changes: 1 addition & 1 deletion docs/rules/no-array-for-each.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Prefer `for…of` over `Array#forEach(…)`

<!-- Do not manually modify RULE_NOTICE part -->
<!-- Do not manually modify RULE_NOTICE part. Run: `npm run generate-rule-notices` -->
<!-- RULE_NOTICE -->
✅ *This rule is part of the [recommended](https://github.com/sindresorhus/eslint-plugin-unicorn#recommended-config) config.*

Expand Down
2 changes: 1 addition & 1 deletion docs/rules/no-array-method-this-argument.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Disallow using the `this` argument in array methods

<!-- Do not manually modify RULE_NOTICE part -->
<!-- Do not manually modify RULE_NOTICE part. Run: `npm run generate-rule-notices` -->
<!-- RULE_NOTICE -->
✅ *This rule is part of the [recommended](https://github.com/sindresorhus/eslint-plugin-unicorn#recommended-config) config.*

Expand Down
2 changes: 1 addition & 1 deletion docs/rules/no-array-push-push.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Enforce combining multiple `Array#push()` into one call

<!-- Do not manually modify RULE_NOTICE part -->
<!-- Do not manually modify RULE_NOTICE part. Run: `npm run generate-rule-notices` -->
<!-- RULE_NOTICE -->
✅ *This rule is part of the [recommended](https://github.com/sindresorhus/eslint-plugin-unicorn#recommended-config) config.*

Expand Down
2 changes: 1 addition & 1 deletion docs/rules/no-array-reduce.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Disallow `Array#reduce()` and `Array#reduceRight()`

<!-- Do not manually modify RULE_NOTICE part -->
<!-- Do not manually modify RULE_NOTICE part. Run: `npm run generate-rule-notices` -->
<!-- RULE_NOTICE -->
✅ *This rule is part of the [recommended](https://github.com/sindresorhus/eslint-plugin-unicorn#recommended-config) config.*
<!-- /RULE_NOTICE -->
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/no-await-expression-member.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Forbid member access from await expression

<!-- Do not manually modify RULE_NOTICE part -->
<!-- Do not manually modify RULE_NOTICE part. Run: `npm run generate-rule-notices` -->
<!-- RULE_NOTICE -->
✅ *This rule is part of the [recommended](https://github.com/sindresorhus/eslint-plugin-unicorn#recommended-config) config.*

Expand Down
2 changes: 1 addition & 1 deletion docs/rules/no-console-spaces.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Do not use leading/trailing space between `console.log` parameters

<!-- Do not manually modify RULE_NOTICE part -->
<!-- Do not manually modify RULE_NOTICE part. Run: `npm run generate-rule-notices` -->
<!-- RULE_NOTICE -->
✅ *This rule is part of the [recommended](https://github.com/sindresorhus/eslint-plugin-unicorn#recommended-config) config.*

Expand Down
2 changes: 1 addition & 1 deletion docs/rules/no-document-cookie.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Do not use `document.cookie` directly

<!-- Do not manually modify RULE_NOTICE part -->
<!-- Do not manually modify RULE_NOTICE part. Run: `npm run generate-rule-notices` -->
<!-- RULE_NOTICE -->
✅ *This rule is part of the [recommended](https://github.com/sindresorhus/eslint-plugin-unicorn#recommended-config) config.*
<!-- /RULE_NOTICE -->
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/no-empty-file.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Disallow empty files

<!-- Do not manually modify RULE_NOTICE part -->
<!-- Do not manually modify RULE_NOTICE part. Run: `npm run generate-rule-notices` -->
<!-- RULE_NOTICE -->
✅ *This rule is part of the [recommended](https://github.com/sindresorhus/eslint-plugin-unicorn#recommended-config) config.*
<!-- /RULE_NOTICE -->
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/no-for-loop.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Do not use a `for` loop that can be replaced with a `for-of` loop

<!-- Do not manually modify RULE_NOTICE part -->
<!-- Do not manually modify RULE_NOTICE part. Run: `npm run generate-rule-notices` -->
<!-- RULE_NOTICE -->
✅ *This rule is part of the [recommended](https://github.com/sindresorhus/eslint-plugin-unicorn#recommended-config) config.*

Expand Down
2 changes: 1 addition & 1 deletion docs/rules/no-hex-escape.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Enforce the use of Unicode escapes instead of hexadecimal escapes

<!-- Do not manually modify RULE_NOTICE part -->
<!-- Do not manually modify RULE_NOTICE part. Run: `npm run generate-rule-notices` -->
<!-- RULE_NOTICE -->
✅ *This rule is part of the [recommended](https://github.com/sindresorhus/eslint-plugin-unicorn#recommended-config) config.*

Expand Down
2 changes: 1 addition & 1 deletion docs/rules/no-instanceof-array.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Require `Array.isArray()` instead of `instanceof Array`

<!-- Do not manually modify RULE_NOTICE part -->
<!-- Do not manually modify RULE_NOTICE part. Run: `npm run generate-rule-notices` -->
<!-- RULE_NOTICE -->
✅ *This rule is part of the [recommended](https://github.com/sindresorhus/eslint-plugin-unicorn#recommended-config) config.*

Expand Down
2 changes: 1 addition & 1 deletion docs/rules/no-invalid-remove-event-listener.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Prevent calling `EventTarget#removeEventListener()` with the result of an expression

<!-- Do not manually modify RULE_NOTICE part -->
<!-- Do not manually modify RULE_NOTICE part. Run: `npm run generate-rule-notices` -->
<!-- RULE_NOTICE -->
✅ *This rule is part of the [recommended](https://github.com/sindresorhus/eslint-plugin-unicorn#recommended-config) config.*
<!-- /RULE_NOTICE -->
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/no-keyword-prefix.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Disallow identifiers starting with `new` or `class`

<!-- Do not manually modify RULE_NOTICE part -->
<!-- Do not manually modify RULE_NOTICE part. Run: `npm run generate-rule-notices` -->
<!-- RULE_NOTICE -->
<!-- /RULE_NOTICE -->

Expand Down
2 changes: 1 addition & 1 deletion docs/rules/no-lonely-if.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Disallow `if` statements as the only statement in `if` blocks without `else`

<!-- Do not manually modify RULE_NOTICE part -->
<!-- Do not manually modify RULE_NOTICE part. Run: `npm run generate-rule-notices` -->
<!-- RULE_NOTICE -->
✅ *This rule is part of the [recommended](https://github.com/sindresorhus/eslint-plugin-unicorn#recommended-config) config.*

Expand Down
2 changes: 1 addition & 1 deletion docs/rules/no-nested-ternary.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Disallow nested ternary expressions

<!-- Do not manually modify RULE_NOTICE part -->
<!-- Do not manually modify RULE_NOTICE part. Run: `npm run generate-rule-notices` -->
<!-- RULE_NOTICE -->
✅ *This rule is part of the [recommended](https://github.com/sindresorhus/eslint-plugin-unicorn#recommended-config) config.*

Expand Down
2 changes: 1 addition & 1 deletion docs/rules/no-new-array.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Disallow `new Array()`

<!-- Do not manually modify RULE_NOTICE part -->
<!-- Do not manually modify RULE_NOTICE part. Run: `npm run generate-rule-notices` -->
<!-- RULE_NOTICE -->
✅ *This rule is part of the [recommended](https://github.com/sindresorhus/eslint-plugin-unicorn#recommended-config) config.*

Expand Down
2 changes: 1 addition & 1 deletion docs/rules/no-new-buffer.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`

<!-- Do not manually modify RULE_NOTICE part -->
<!-- Do not manually modify RULE_NOTICE part. Run: `npm run generate-rule-notices` -->
<!-- RULE_NOTICE -->
✅ *This rule is part of the [recommended](https://github.com/sindresorhus/eslint-plugin-unicorn#recommended-config) config.*

Expand Down
2 changes: 1 addition & 1 deletion docs/rules/no-null.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Disallow the use of the `null` literal

<!-- Do not manually modify RULE_NOTICE part -->
<!-- Do not manually modify RULE_NOTICE part. Run: `npm run generate-rule-notices` -->
<!-- RULE_NOTICE -->
✅ *This rule is part of the [recommended](https://github.com/sindresorhus/eslint-plugin-unicorn#recommended-config) config.*

Expand Down
2 changes: 1 addition & 1 deletion docs/rules/no-object-as-default-parameter.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Disallow the use of objects as default parameters

<!-- Do not manually modify RULE_NOTICE part -->
<!-- Do not manually modify RULE_NOTICE part. Run: `npm run generate-rule-notices` -->
<!-- RULE_NOTICE -->
✅ *This rule is part of the [recommended](https://github.com/sindresorhus/eslint-plugin-unicorn#recommended-config) config.*
<!-- /RULE_NOTICE -->
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/no-process-exit.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Disallow `process.exit()`

<!-- Do not manually modify RULE_NOTICE part -->
<!-- Do not manually modify RULE_NOTICE part. Run: `npm run generate-rule-notices` -->
<!-- RULE_NOTICE -->
✅ *This rule is part of the [recommended](https://github.com/sindresorhus/eslint-plugin-unicorn#recommended-config) config.*
<!-- /RULE_NOTICE -->
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/no-static-only-class.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Forbid classes that only have static members

<!-- Do not manually modify RULE_NOTICE part -->
<!-- Do not manually modify RULE_NOTICE part. Run: `npm run generate-rule-notices` -->
<!-- RULE_NOTICE -->
✅ *This rule is part of the [recommended](https://github.com/sindresorhus/eslint-plugin-unicorn#recommended-config) config.*

Expand Down
2 changes: 1 addition & 1 deletion docs/rules/no-thenable.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Disallow `then` property

<!-- Do not manually modify RULE_NOTICE part -->
<!-- Do not manually modify RULE_NOTICE part. Run: `npm run generate-rule-notices` -->
<!-- RULE_NOTICE -->
✅ *This rule is part of the [recommended](https://github.com/sindresorhus/eslint-plugin-unicorn#recommended-config) config.*
<!-- /RULE_NOTICE -->
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/no-this-assignment.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Disallow assigning `this` to a variable

<!-- Do not manually modify RULE_NOTICE part -->
<!-- Do not manually modify RULE_NOTICE part. Run: `npm run generate-rule-notices` -->
<!-- RULE_NOTICE -->
✅ *This rule is part of the [recommended](https://github.com/sindresorhus/eslint-plugin-unicorn#recommended-config) config.*
<!-- /RULE_NOTICE -->
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/no-unreadable-array-destructuring.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Disallow unreadable array destructuring

<!-- Do not manually modify RULE_NOTICE part -->
<!-- Do not manually modify RULE_NOTICE part. Run: `npm run generate-rule-notices` -->
<!-- RULE_NOTICE -->
✅ *This rule is part of the [recommended](https://github.com/sindresorhus/eslint-plugin-unicorn#recommended-config) config.*

Expand Down
2 changes: 1 addition & 1 deletion docs/rules/no-unsafe-regex.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Disallow unsafe regular expressions

<!-- Do not manually modify RULE_NOTICE part -->
<!-- Do not manually modify RULE_NOTICE part. Run: `npm run generate-rule-notices` -->
<!-- RULE_NOTICE -->
<!-- /RULE_NOTICE -->

Expand Down
2 changes: 1 addition & 1 deletion docs/rules/no-unused-properties.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Disallow unused object properties

<!-- Do not manually modify RULE_NOTICE part -->
<!-- Do not manually modify RULE_NOTICE part. Run: `npm run generate-rule-notices` -->
<!-- RULE_NOTICE -->
<!-- /RULE_NOTICE -->

Expand Down
2 changes: 1 addition & 1 deletion docs/rules/no-useless-fallback-in-spread.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Forbid useless fallback when spreading in object literals

<!-- Do not manually modify RULE_NOTICE part -->
<!-- Do not manually modify RULE_NOTICE part. Run: `npm run generate-rule-notices` -->
<!-- RULE_NOTICE -->
✅ *This rule is part of the [recommended](https://github.com/sindresorhus/eslint-plugin-unicorn#recommended-config) config.*

Expand Down
2 changes: 1 addition & 1 deletion docs/rules/no-useless-length-check.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Disallow useless array length check

<!-- Do not manually modify RULE_NOTICE part -->
<!-- Do not manually modify RULE_NOTICE part. Run: `npm run generate-rule-notices` -->
<!-- RULE_NOTICE -->
✅ *This rule is part of the [recommended](https://github.com/sindresorhus/eslint-plugin-unicorn#recommended-config) config.*

Expand Down
2 changes: 1 addition & 1 deletion docs/rules/no-useless-promise-resolve-reject.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks

<!-- Do not manually modify RULE_NOTICE part -->
<!-- Do not manually modify RULE_NOTICE part. Run: `npm run generate-rule-notices` -->
<!-- RULE_NOTICE -->
✅ *This rule is part of the [recommended](https://github.com/sindresorhus/eslint-plugin-unicorn#recommended-config) config.*

Expand Down
2 changes: 1 addition & 1 deletion docs/rules/no-useless-spread.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Disallow unnecessary spread

<!-- Do not manually modify RULE_NOTICE part -->
<!-- Do not manually modify RULE_NOTICE part. Run: `npm run generate-rule-notices` -->
<!-- RULE_NOTICE -->
✅ *This rule is part of the [recommended](https://github.com/sindresorhus/eslint-plugin-unicorn#recommended-config) config.*

Expand Down
2 changes: 1 addition & 1 deletion docs/rules/no-useless-undefined.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Disallow useless `undefined`

<!-- Do not manually modify RULE_NOTICE part -->
<!-- Do not manually modify RULE_NOTICE part. Run: `npm run generate-rule-notices` -->
<!-- RULE_NOTICE -->
✅ *This rule is part of the [recommended](https://github.com/sindresorhus/eslint-plugin-unicorn#recommended-config) config.*

Expand Down
2 changes: 1 addition & 1 deletion docs/rules/no-zero-fractions.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Disallow number literals with zero fractions or dangling dots

<!-- Do not manually modify RULE_NOTICE part -->
<!-- Do not manually modify RULE_NOTICE part. Run: `npm run generate-rule-notices` -->
<!-- RULE_NOTICE -->
✅ *This rule is part of the [recommended](https://github.com/sindresorhus/eslint-plugin-unicorn#recommended-config) config.*

Expand Down
2 changes: 1 addition & 1 deletion docs/rules/number-literal-case.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Enforce proper case for numeric literals

<!-- Do not manually modify RULE_NOTICE part -->
<!-- Do not manually modify RULE_NOTICE part. Run: `npm run generate-rule-notices` -->
<!-- RULE_NOTICE -->
✅ *This rule is part of the [recommended](https://github.com/sindresorhus/eslint-plugin-unicorn#recommended-config) config.*

Expand Down