Skip to content

fix: sync rule type header comments automatically #19276

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

Merged
merged 6 commits into from
Jan 17, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix: sync rule type header comments
  • Loading branch information
fasttime committed Jan 17, 2025
commit 1858b6559f26fe3d08fd5ab7143767a53653f55a
204 changes: 109 additions & 95 deletions lib/types/rules/best-practices.d.ts

Large diffs are not rendered by default.

47 changes: 32 additions & 15 deletions lib/types/rules/deprecated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,29 @@
import { Linter } from "../index";

export interface Deprecated extends Linter.RulesRecord {

/**
* Rule to enforce line breaks between arguments of a function call.
*
* @since 6.2.0
* @deprecated since 8.53.0, please use the [corresponding rule](https://eslint.style/rules/js/function-call-argument-newline) in `@stylistic/eslint-plugin-js`.
* @see https://eslint.org/docs/latest/rules/function-call-argument-newline
*/
"function-call-argument-newline": Linter.RuleEntry<
[
/**
* @default "always"
*/
"always" | "never" | "consistent"
]
>;

/**
* Rule to enforce consistent indentation.
*
* @since 4.0.0-alpha.0
* @deprecated since 4.0.0, use [`indent`](https://eslint.org/docs/rules/indent) instead.
* @see https://eslint.org/docs/rules/indent-legacy
* @see https://eslint.org/docs/latest/rules/indent-legacy
*/
"indent-legacy": Linter.RuleEntry<
[
Expand Down Expand Up @@ -136,7 +153,7 @@ export interface Deprecated extends Linter.RulesRecord {
*
* @since 3.5.0
* @deprecated since 4.0.0, use [`padding-line-between-statements`](https://eslint.org/docs/rules/padding-line-between-statements) instead.
* @see https://eslint.org/docs/rules/lines-around-directive
* @see https://eslint.org/docs/latest/rules/lines-around-directive
*/
"lines-around-directive": Linter.RuleEntry<["always" | "never"]>;

Expand All @@ -145,7 +162,7 @@ export interface Deprecated extends Linter.RulesRecord {
*
* @since 0.18.0
* @deprecated since 4.0.0, use [`padding-line-between-statements`](https://eslint.org/docs/rules/padding-line-between-statements) instead.
* @see https://eslint.org/docs/rules/newline-after-var
* @see https://eslint.org/docs/latest/rules/newline-after-var
*/
"newline-after-var": Linter.RuleEntry<["always" | "never"]>;

Expand All @@ -154,25 +171,25 @@ export interface Deprecated extends Linter.RulesRecord {
*
* @since 2.3.0
* @deprecated since 4.0.0, use [`padding-line-between-statements`](https://eslint.org/docs/rules/padding-line-between-statements) instead.
* @see https://eslint.org/docs/rules/newline-before-return
* @see https://eslint.org/docs/latest/rules/newline-before-return
*/
"newline-before-return": Linter.RuleEntry<[]>;

/**
* Rule to disallow shadowing of variables inside of `catch`.
* Rule to disallow `catch` clause parameters from shadowing variables in the outer scope.
*
* @since 0.0.9
* @deprecated since 5.1.0, use [`no-shadow`](https://eslint.org/docs/rules/no-shadow) instead.
* @see https://eslint.org/docs/rules/no-catch-shadow
* @see https://eslint.org/docs/latest/rules/no-catch-shadow
*/
"no-catch-shadow": Linter.RuleEntry<[]>;

/**
* Rule to disallow reassignment of native objects.
* Rule to disallow assignments to native objects or read-only global variables.
*
* @since 0.0.9
* @deprecated since 3.3.0, use [`no-global-assign`](https://eslint.org/docs/rules/no-global-assign) instead.
* @see https://eslint.org/docs/rules/no-native-reassign
* @see https://eslint.org/docs/latest/rules/no-native-reassign
*/
"no-native-reassign": Linter.RuleEntry<
[
Expand All @@ -187,7 +204,7 @@ export interface Deprecated extends Linter.RulesRecord {
*
* @since 0.1.2
* @deprecated since 3.3.0, use [`no-unsafe-negation`](https://eslint.org/docs/rules/no-unsafe-negation) instead.
* @see https://eslint.org/docs/rules/no-negated-in-lhs
* @see https://eslint.org/docs/latest/rules/no-negated-in-lhs
*/
"no-negated-in-lhs": Linter.RuleEntry<[]>;

Expand All @@ -196,7 +213,7 @@ export interface Deprecated extends Linter.RulesRecord {
*
* @since 0.0.9
* @deprecated since 8.50.0, use [`no-object-constructor`](https://eslint.org/docs/rules/no-object-constructor) instead.
* @see https://eslint.org/docs/rules/no-object-constructor
* @see https://eslint.org/docs/latest/rules/no-new-object
*/
"no-new-object": Linter.RuleEntry<[]>;

Expand All @@ -205,25 +222,25 @@ export interface Deprecated extends Linter.RulesRecord {
*
* @since 2.0.0-beta.1
* @deprecated since 8.27.0, use [`no-new-native-nonconstructor`](https://eslint.org/docs/rules/no-new-native-nonconstructor) instead.
* @see https://eslint.org/docs/rules/no-new-symbol
* @see https://eslint.org/docs/latest/rules/no-new-symbol
*/
"no-new-symbol": Linter.RuleEntry<[]>;

/**
* Rule to disallow spacing between function identifiers and their applications.
* Rule to disallow spacing between function identifiers and their applications (deprecated).
*
* @since 0.1.2
* @deprecated since 3.3.0, use [`func-call-spacing`](https://eslint.org/docs/rules/func-call-spacing) instead.
* @see https://eslint.org/docs/rules/no-spaced-func
* @see https://eslint.org/docs/latest/rules/no-spaced-func
*/
"no-spaced-func": Linter.RuleEntry<[]>;

/**
* Rule to suggest using `Reflect` methods where applicable.
* Rule to require `Reflect` methods where applicable.
*
* @since 1.0.0-rc-2
* @deprecated since 3.9.0
* @see https://eslint.org/docs/rules/prefer-reflect
* @see https://eslint.org/docs/latest/rules/prefer-reflect
*/
"prefer-reflect": Linter.RuleEntry<
[
Expand Down
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy