Compared with 9.39.2: `Rule.ReportDescriptorOptionsBase`, `Linter.FlatConfig`, `Rule.RuleMetaData.replacedBy`, `Rule.RuleMetaData.language`, `Rule.RuleMetaData.dialects`, and 103 more. 6 newly deprecated.
eslint 9.39.2 → 10.13.0: deprecates 108 API(s): from its source to your code
Linter.Processor.version: Use `meta.version` instead.
Rule.RuleModule.meta.replacedBy: Use deprecated.replacedBy instead. The name of the rule(s) this rule was replaced by, if it was deprecated.
Rule.RuleModule.meta.language: The language the rule is intended to lint. Use `languages` instead.
Rule.RuleModule.meta.dialects: The dialects of `language` that the rule is intended to lint. Use `docs.dialects` instead.
rules:ESLintRules.array-bracket-newline: Rule to enforce linebreaks after opening and before closing array brackets. since 8.53.0. Formatting rules are being moved out of ESLint core. Please, use [`array-bracket-newline`](https://eslint.style/rules/array-bracket-newline) in [`@stylistic/eslint-plugin`](https://eslint.style). https://eslint.org/docs/latest/rules/array-bracket-newline
rules:ESLintRules.array-bracket-spacing: Rule to enforce consistent spacing inside array brackets. since 8.53.0. Formatting rules are being moved out of ESLint core. Please, use [`array-bracket-spacing`](https://eslint.style/rules/array-bracket-spacing) in [`@stylistic/eslint-plugin`](https://eslint.style). https://eslint.org/docs/latest/rules/array-bracket-spacing
rules:ESLintRules.array-element-newline: Rule to enforce line breaks after each array element. since 8.53.0. Formatting rules are being moved out of ESLint core. Please, use [`array-element-newline`](https://eslint.style/rules/array-element-newline) in [`@stylistic/eslint-plugin`](https://eslint.style). https://eslint.org/docs/latest/rules/array-element-newline
rules:ESLintRules.arrow-parens: Rule to require parentheses around arrow function arguments. since 8.53.0. Formatting rules are being moved out of ESLint core. Please, use [`arrow-parens`](https://eslint.style/rules/arrow-parens) in [`@stylistic/eslint-plugin`](https://eslint.style). https://eslint.org/docs/latest/rules/arrow-parens
rules:ESLintRules.arrow-spacing: Rule to enforce consistent spacing before and after the arrow in arrow functions. since 8.53.0. Formatting rules are being moved out of ESLint core. Please, use [`arrow-spacing`](https://eslint.style/rules/arrow-spacing) in [`@stylistic/eslint-plugin`](https://eslint.style). https://eslint.org/docs/latest/rules/arrow-spacing
rules:ESLintRules.block-spacing: Rule to disallow or enforce spaces inside of blocks after opening block and before closing block. since 8.53.0. Formatting rules are being moved out of ESLint core. Please, use [`block-spacing`](https://eslint.style/rules/block-spacing) in [`@stylistic/eslint-plugin`](https://eslint.style). https://eslint.org/docs/latest/rules/block-spacing
rules:ESLintRules.brace-style: Rule to enforce consistent brace style for blocks. since 8.53.0. Formatting rules are being moved out of ESLint core. Please, use [`brace-style`](https://eslint.style/rules/brace-style) in [`@stylistic/eslint-plugin`](https://eslint.style). https://eslint.org/docs/latest/rules/brace-style
rules:ESLintRules.callback-return: Rule to require `return` statements after callbacks. since 7.0.0. Node.js rules were moved out of ESLint core. Please, use [`callback-return`](https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/callback-return.md) in [`eslint-plugin-n`](https://github.com/eslint-community/eslint-plugin-n). https://eslint.org/docs/latest/rules/callback-return
rules:ESLintRules.comma-dangle: Rule to require or disallow trailing commas. since 8.53.0. Formatting rules are being moved out of ESLint core. Please, use [`comma-dangle`](https://eslint.style/rules/comma-dangle) in [`@stylistic/eslint-plugin`](https://eslint.style). https://eslint.org/docs/latest/rules/comma-dangle
rules:ESLintRules.comma-spacing: Rule to enforce consistent spacing before and after commas. since 8.53.0. Formatting rules are being moved out of ESLint core. Please, use [`comma-spacing`](https://eslint.style/rules/comma-spacing) in [`@stylistic/eslint-plugin`](https://eslint.style). https://eslint.org/docs/latest/rules/comma-spacing
rules:ESLintRules.comma-style: Rule to enforce consistent comma style. since 8.53.0. Formatting rules are being moved out of ESLint core. Please, use [`comma-style`](https://eslint.style/rules/comma-style) in [`@stylistic/eslint-plugin`](https://eslint.style). https://eslint.org/docs/latest/rules/comma-style
rules:ESLintRules.computed-property-spacing: Rule to enforce consistent spacing inside computed property brackets. since 8.53.0. Formatting rules are being moved out of ESLint core. Please, use [`computed-property-spacing`](https://eslint.style/rules/computed-property-spacing) in [`@stylistic/eslint-plugin`](https://eslint.style). https://eslint.org/docs/latest/rules/computed-property-spacing
rules:ESLintRules.dot-location: Rule to enforce consistent newlines before and after dots. since 8.53.0. Formatting rules are being moved out of ESLint core. Please, use [`dot-location`](https://eslint.style/rules/dot-location) in [`@stylistic/eslint-plugin`](https://eslint.style). https://eslint.org/docs/latest/rules/dot-location
rules:ESLintRules.eol-last: Rule to require or disallow newline at the end of files. since 8.53.0. Formatting rules are being moved out of ESLint core. Please, use [`eol-last`](https://eslint.style/rules/eol-last) in [`@stylistic/eslint-plugin`](https://eslint.style). https://eslint.org/docs/latest/rules/eol-last
rules:ESLintRules.func-call-spacing: Rule to require or disallow spacing between function identifiers and their invocations. since 8.53.0. Formatting rules are being moved out of ESLint core. Please, use [`function-call-spacing`](https://eslint.style/rules/function-call-spacing) in [`@stylistic/eslint-plugin`](https://eslint.style). https://eslint.org/docs/latest/rules/func-call-spacing
rules:ESLintRules.function-call-argument-newline: Rule to enforce line breaks between arguments of a function call. since 8.53.0. Formatting rules are being moved out of ESLint core. Please, use [`function-call-argument-newline`](https://eslint.style/rules/function-call-argument-newline) in [`@stylistic/eslint-plugin`](https://eslint.style). https://eslint.org/docs/latest/rules/function-call-argument-newline
rules:ESLintRules.function-paren-newline: Rule to enforce consistent line breaks inside function parentheses. since 8.53.0. Formatting rules are being moved out of ESLint core. Please, use [`function-paren-newline`](https://eslint.style/rules/function-paren-newline) in [`@stylistic/eslint-plugin`](https://eslint.style). https://eslint.org/docs/latest/rules/function-paren-newline
rules:ESLintRules.generator-star-spacing: Rule to enforce consistent spacing around `*` operators in generator functions. since 8.53.0. Formatting rules are being moved out of ESLint core. Please, use [`generator-star-spacing`](https://eslint.style/rules/generator-star-spacing) in [`@stylistic/eslint-plugin`](https://eslint.style). https://eslint.org/docs/latest/rules/generator-star-spacing
rules:ESLintRules.global-require: Rule to require `require()` calls to be placed at top-level module scope. since 7.0.0. Node.js rules were moved out of ESLint core. Please, use [`global-require`](https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/global-require.md) in [`eslint-plugin-n`](https://github.com/eslint-community/eslint-plugin-n). https://eslint.org/docs/latest/rules/global-require
rules:ESLintRules.handle-callback-err: Rule to require error handling in callbacks. since 7.0.0. Node.js rules were moved out of ESLint core. Please, use [`handle-callback-err`](https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/handle-callback-err.md) in [`eslint-plugin-n`](https://github.com/eslint-community/eslint-plugin-n). https://eslint.org/docs/latest/rules/handle-callback-err
rules:ESLintRules.id-blacklist: Rule to disallow specified identifiers. since 7.5.0. The rule was renamed. Please, use [`id-denylist`](https://eslint.org/docs/rules/id-denylist). https://eslint.org/docs/latest/rules/id-blacklist
rules:ESLintRules.implicit-arrow-linebreak: Rule to enforce the location of arrow function bodies. since 8.53.0. Formatting rules are being moved out of ESLint core. Please, use [`implicit-arrow-linebreak`](https://eslint.style/rules/implicit-arrow-linebreak) in [`@stylistic/eslint-plugin`](https://eslint.style). https://eslint.org/docs/latest/rules/implicit-arrow-linebreak
rules:ESLintRules.indent: Rule to enforce consistent indentation. since 8.53.0. Formatting rules are being moved out of ESLint core. Please, use [`indent`](https://eslint.style/rules/indent) in [`@stylistic/eslint-plugin`](https://eslint.style). https://eslint.org/docs/latest/rules/indent
rules:ESLintRules.indent-legacy: Rule to enforce consistent indentation. since 4.0.0. Formatting rules are being moved out of ESLint core. Please, use [`indent`](https://eslint.style/rules/indent) in [`@stylistic/eslint-plugin`](https://eslint.style). https://eslint.org/docs/latest/rules/indent-legacy
rules:ESLintRules.jsx-quotes: Rule to enforce the consistent use of either double or single quotes in JSX attributes. since 8.53.0. Formatting rules are being moved out of ESLint core. Please, use [`jsx-quotes`](https://eslint.style/rules/jsx-quotes) in [`@stylistic/eslint-plugin`](https://eslint.style). https://eslint.org/docs/latest/rules/jsx-quotes
rules:ESLintRules.key-spacing: Rule to enforce consistent spacing between keys and values in object literal properties. since 8.53.0. Formatting rules are being moved out of ESLint core. Please, use [`key-spacing`](https://eslint.style/rules/key-spacing) in [`@stylistic/eslint-plugin`](https://eslint.style). https://eslint.org/docs/latest/rules/key-spacing
rules:ESLintRules.keyword-spacing: Rule to enforce consistent spacing before and after keywords. since 8.53.0. Formatting rules are being moved out of ESLint core. Please, use [`keyword-spacing`](https://eslint.style/rules/keyword-spacing) in [`@stylistic/eslint-plugin`](https://eslint.style). https://eslint.org/docs/latest/rules/keyword-spacing
rules:ESLintRules.line-comment-position: Rule to enforce position of line comments. since 9.3.0. Formatting rules are being moved out of ESLint core. Please, use [`line-comment-position`](https://eslint.style/rules/line-comment-position) in [`@stylistic/eslint-plugin`](https://eslint.style). https://eslint.org/docs/latest/rules/line-comment-position
rules:ESLintRules.linebreak-style: Rule to enforce consistent linebreak style. since 8.53.0. Formatting rules are being moved out of ESLint core. Please, use [`linebreak-style`](https://eslint.style/rules/linebreak-style) in [`@stylistic/eslint-plugin`](https://eslint.style). https://eslint.org/docs/latest/rules/linebreak-style
rules:ESLintRules.lines-around-comment: Rule to require empty lines around comments. since 8.53.0. Formatting rules are being moved out of ESLint core. Please, use [`lines-around-comment`](https://eslint.style/rules/lines-around-comment) in [`@stylistic/eslint-plugin`](https://eslint.style). https://eslint.org/docs/latest/rules/lines-around-comment
rules:ESLintRules.lines-around-directive: Rule to require or disallow newlines around directives. since 4.0.0. The rule was replaced with a more general rule. Please, use [`padding-line-between-statements`](https://eslint.style/rules/padding-line-between-statements) in [`@stylistic/eslint-plugin`](https://eslint.style). https://eslint.org/docs/latest/rules/lines-around-directive
rules:ESLintRules.lines-between-class-members: Rule to require or disallow an empty line between class members. since 8.53.0. Formatting rules are being moved out of ESLint core. Please, use [`lines-between-class-members`](https://eslint.style/rules/lines-between-class-members) in [`@stylistic/eslint-plugin`](https://eslint.style). https://eslint.org/docs/latest/rules/lines-between-class-members
rules:ESLintRules.max-len: Rule to enforce a maximum line length. since 8.53.0. Formatting rules are being moved out of ESLint core. Please, use [`max-len`](https://eslint.style/rules/max-len) in [`@stylistic/eslint-plugin`](https://eslint.style). https://eslint.org/docs/latest/rules/max-len
rules:ESLintRules.max-statements-per-line: Rule to enforce a maximum number of statements allowed per line. since 8.53.0. Formatting rules are being moved out of ESLint core. Please, use [`max-statements-per-line`](https://eslint.style/rules/max-statements-per-line) in [`@stylistic/eslint-plugin`](https://eslint.style). https://eslint.org/docs/latest/rules/max-statements-per-line
rules:ESLintRules.multiline-comment-style: Rule to enforce a particular style for multiline comments. since 9.3.0. Formatting rules are being moved out of ESLint core. Please, use [`multiline-comment-style`](https://eslint.style/rules/multiline-comment-style) in [`@stylistic/eslint-plugin`](https://eslint.style). https://eslint.org/docs/latest/rules/multiline-comment-style
rules:ESLintRules.multiline-ternary: Rule to enforce newlines between operands of ternary expressions. since 8.53.0. Formatting rules are being moved out of ESLint core. Please, use [`multiline-ternary`](https://eslint.style/rules/multiline-ternary) in [`@stylistic/eslint-plugin`](https://eslint.style). https://eslint.org/docs/latest/rules/multiline-ternary
rules:ESLintRules.new-parens: Rule to enforce or disallow parentheses when invoking a constructor with no arguments. since 8.53.0. Formatting rules are being moved out of ESLint core. Please, use [`new-parens`](https://eslint.style/rules/new-parens) in [`@stylistic/eslint-plugin`](https://eslint.style). https://eslint.org/docs/latest/rules/new-parens