Compared with 8.24.0: `Rule.ReportDescriptorOptionsBase`, `Linter.FlatConfig`, `Rule.RuleMetaData.replacedBy`, `use-at-your-own-risk:builtinRules`, `rules:ESLintRules.no-extra-parens`, and 91 more. 86 newly deprecated.
eslint 8.24.0 → 10.13.0: deprecates 96 API(s): from its source to your code
Rule.ReportDescriptorOptionsBase: Use `ReportDescriptorOptions` instead.
Linter.FlatConfig: Use `Config` instead of `FlatConfig`
Rule.RuleMetaData.replacedBy: Use deprecated.replacedBy instead. The name of the rule(s) this rule was replaced by, if it was deprecated.
rules:ESLintRules.no-extra-parens: Rule to disallow unnecessary parentheses. since 8.53.0. Formatting rules are being moved out of ESLint core. Please, use [`no-extra-parens`](https://eslint.style/rules/no-extra-parens) in [`@stylistic/eslint-plugin`](https://eslint.style). https://eslint.org/docs/latest/rules/no-extra-parens
rules:ESLintRules.no-extra-semi: Rule to disallow unnecessary semicolons. since 8.53.0. Formatting rules are being moved out of ESLint core. Please, use [`no-extra-semi`](https://eslint.style/rules/no-extra-semi) in [`@stylistic/eslint-plugin`](https://eslint.style). https://eslint.org/docs/latest/rules/no-extra-semi
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.no-floating-decimal: Rule to disallow leading or trailing decimal points in numeric literals. since 8.53.0. Formatting rules are being moved out of ESLint core. Please, use [`no-floating-decimal`](https://eslint.style/rules/no-floating-decimal) in [`@stylistic/eslint-plugin`](https://eslint.style). https://eslint.org/docs/latest/rules/no-floating-decimal
rules:ESLintRules.no-multi-spaces: Rule to disallow multiple spaces. since 8.53.0. Formatting rules are being moved out of ESLint core. Please, use [`no-multi-spaces`](https://eslint.style/rules/no-multi-spaces) in [`@stylistic/eslint-plugin`](https://eslint.style). https://eslint.org/docs/latest/rules/no-multi-spaces
rules:ESLintRules.no-return-await: Rule to disallow unnecessary `return await`. since 8.46.0. The original assumption of the rule no longer holds true because of engine optimization. https://eslint.org/docs/latest/rules/no-return-await
rules:ESLintRules.wrap-iife: Rule to require parentheses around immediate `function` invocations. since 8.53.0. Formatting rules are being moved out of ESLint core. Please, use [`wrap-iife`](https://eslint.style/rules/wrap-iife) in [`@stylistic/eslint-plugin`](https://eslint.style). https://eslint.org/docs/latest/rules/wrap-iife
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.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.no-buffer-constructor: Rule to disallow use of the `Buffer()` constructor. since 7.0.0. Node.js rules were moved out of ESLint core. Please, use [`no-deprecated-api`](https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-deprecated-api.md) in [`eslint-plugin-n`](https://github.com/eslint-community/eslint-plugin-n). https://eslint.org/docs/latest/rules/no-buffer-constructor
rules:ESLintRules.no-mixed-requires: Rule to disallow `require` calls to be mixed with regular variable declarations. since 7.0.0. Node.js rules were moved out of ESLint core. Please, use [`no-mixed-requires`](https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-mixed-requires.md) in [`eslint-plugin-n`](https://github.com/eslint-community/eslint-plugin-n). https://eslint.org/docs/latest/rules/no-mixed-requires
rules:ESLintRules.no-new-require: Rule to disallow `new` operators with calls to `require`. since 7.0.0. Node.js rules were moved out of ESLint core. Please, use [`no-new-require`](https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-new-require.md) in [`eslint-plugin-n`](https://github.com/eslint-community/eslint-plugin-n). https://eslint.org/docs/latest/rules/no-new-require
rules:ESLintRules.no-path-concat: Rule to disallow string concatenation with `__dirname` and `__filename`. since 7.0.0. Node.js rules were moved out of ESLint core. Please, use [`no-path-concat`](https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-path-concat.md) in [`eslint-plugin-n`](https://github.com/eslint-community/eslint-plugin-n). https://eslint.org/docs/latest/rules/no-path-concat
rules:ESLintRules.no-process-env: Rule to disallow the use of `process.env`. since 7.0.0. Node.js rules were moved out of ESLint core. Please, use [`no-process-env`](https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-process-env.md) in [`eslint-plugin-n`](https://github.com/eslint-community/eslint-plugin-n). https://eslint.org/docs/latest/rules/no-process-env
rules:ESLintRules.no-process-exit: Rule to disallow the use of `process.exit()`. since 7.0.0. Node.js rules were moved out of ESLint core. Please, use [`no-process-exit`](https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-process-exit.md) in [`eslint-plugin-n`](https://github.com/eslint-community/eslint-plugin-n). https://eslint.org/docs/latest/rules/no-process-exit
rules:ESLintRules.no-restricted-modules: Rule to disallow specified modules when loaded by `require`. since 7.0.0. Node.js rules were moved out of ESLint core. Please, use [`no-restricted-require`](https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-restricted-require.md) in [`eslint-plugin-n`](https://github.com/eslint-community/eslint-plugin-n). https://eslint.org/docs/latest/rules/no-restricted-modules
rules:ESLintRules.no-sync: Rule to disallow synchronous methods. since 7.0.0. Node.js rules were moved out of ESLint core. Please, use [`no-sync`](https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-sync.md) in [`eslint-plugin-n`](https://github.com/eslint-community/eslint-plugin-n). https://eslint.org/docs/latest/rules/no-sync
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.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.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.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-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.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.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-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
rules:ESLintRules.newline-per-chained-call: Rule to require a newline after each call in a method chain. since 8.53.0. Formatting rules are being moved out of ESLint core. Please, use [`newline-per-chained-call`](https://eslint.style/rules/newline-per-chained-call) in [`@stylistic/eslint-plugin`](https://eslint.style). https://eslint.org/docs/latest/rules/newline-per-chained-call
rules:ESLintRules.no-mixed-operators: Rule to disallow mixed binary operators. since 8.53.0. Formatting rules are being moved out of ESLint core. Please, use [`no-mixed-operators`](https://eslint.style/rules/no-mixed-operators) in [`@stylistic/eslint-plugin`](https://eslint.style). https://eslint.org/docs/latest/rules/no-mixed-operators