UNPKG

@jsse/eslint-config

Version:

@jsse/eslint-config ~ WYSIWYG

1,375 lines (1,374 loc) 727 kB
import pluginEslintComments from "@eslint-community/eslint-plugin-eslint-comments"; import pluginTs from "@typescript-eslint/eslint-plugin"; import * as parserTs from "@typescript-eslint/parser"; import { ParserOptions } from "@typescript-eslint/parser"; import pluginAntfu from "eslint-plugin-antfu"; import pluginDeMorgan from "eslint-plugin-de-morgan"; import pluginImportLite from "eslint-plugin-import-lite"; import pluginN from "eslint-plugin-n"; import pluginPerfectionist from "eslint-plugin-perfectionist"; import pluginPnpm from "eslint-plugin-pnpm"; import pluginUnicorn from "eslint-plugin-unicorn"; import pluginUnusedImports from "eslint-plugin-unused-imports"; import * as _eslint_markdown0 from "@eslint/markdown"; import * as _stylistic_eslint_plugin0 from "@stylistic/eslint-plugin"; import { FlatGitignoreOptions } from "eslint-config-flat-gitignore"; import * as eslint_plugin_react0 from "eslint-plugin-react"; import * as jsonc_eslint_parser0 from "jsonc-eslint-parser"; import * as yaml_eslint_parser0 from "yaml-eslint-parser"; import * as eslint0 from "eslint"; import { Linter, Rule } from "eslint"; import * as eslint_plugin_jsonc_meta0 from "eslint-plugin-jsonc/meta"; import * as eslint_plugin_jsonc_types0 from "eslint-plugin-jsonc/types"; import * as eslint_plugin_yml_lib_meta_js0 from "eslint-plugin-yml/lib/meta.js"; import * as eslint_plugin_yml_lib_types_js0 from "eslint-plugin-yml/lib/types.js"; //#region src/generated/dts/builtins.d.ts interface BuiltinsRuleOptions { /** * Enforce getter and setter pairs in objects and classes * @see https://eslint.org/docs/latest/rules/accessor-pairs */ "accessor-pairs"?: Linter.RuleEntry<AccessorPairs>; /** * Enforce linebreaks after opening and before closing array brackets * @see https://eslint.org/docs/latest/rules/array-bracket-newline * @deprecated */ "array-bracket-newline"?: Linter.RuleEntry<ArrayBracketNewline>; /** * Enforce consistent spacing inside array brackets * @see https://eslint.org/docs/latest/rules/array-bracket-spacing * @deprecated */ "array-bracket-spacing"?: Linter.RuleEntry<ArrayBracketSpacing>; /** * Enforce `return` statements in callbacks of array methods * @see https://eslint.org/docs/latest/rules/array-callback-return */ "array-callback-return"?: Linter.RuleEntry<ArrayCallbackReturn>; /** * Enforce line breaks after each array element * @see https://eslint.org/docs/latest/rules/array-element-newline * @deprecated */ "array-element-newline"?: Linter.RuleEntry<ArrayElementNewline>; /** * Require braces around arrow function bodies * @see https://eslint.org/docs/latest/rules/arrow-body-style */ "arrow-body-style"?: Linter.RuleEntry<ArrowBodyStyle>; /** * Require parentheses around arrow function arguments * @see https://eslint.org/docs/latest/rules/arrow-parens * @deprecated */ "arrow-parens"?: Linter.RuleEntry<ArrowParens>; /** * Enforce consistent spacing before and after the arrow in arrow functions * @see https://eslint.org/docs/latest/rules/arrow-spacing * @deprecated */ "arrow-spacing"?: Linter.RuleEntry<ArrowSpacing>; /** * Enforce the use of variables within the scope they are defined * @see https://eslint.org/docs/latest/rules/block-scoped-var */ "block-scoped-var"?: Linter.RuleEntry<[]>; /** * Disallow or enforce spaces inside of blocks after opening block and before closing block * @see https://eslint.org/docs/latest/rules/block-spacing * @deprecated */ "block-spacing"?: Linter.RuleEntry<BlockSpacing>; /** * Enforce consistent brace style for blocks * @see https://eslint.org/docs/latest/rules/brace-style * @deprecated */ "brace-style"?: Linter.RuleEntry<BraceStyle>; /** * Require `return` statements after callbacks * @see https://eslint.org/docs/latest/rules/callback-return * @deprecated */ "callback-return"?: Linter.RuleEntry<CallbackReturn>; /** * Enforce camelcase naming convention * @see https://eslint.org/docs/latest/rules/camelcase */ camelcase?: Linter.RuleEntry<Camelcase>; /** * Enforce or disallow capitalization of the first letter of a comment * @see https://eslint.org/docs/latest/rules/capitalized-comments */ "capitalized-comments"?: Linter.RuleEntry<CapitalizedComments>; /** * Enforce that class methods utilize `this` * @see https://eslint.org/docs/latest/rules/class-methods-use-this */ "class-methods-use-this"?: Linter.RuleEntry<ClassMethodsUseThis>; /** * Require or disallow trailing commas * @see https://eslint.org/docs/latest/rules/comma-dangle * @deprecated */ "comma-dangle"?: Linter.RuleEntry<CommaDangle>; /** * Enforce consistent spacing before and after commas * @see https://eslint.org/docs/latest/rules/comma-spacing * @deprecated */ "comma-spacing"?: Linter.RuleEntry<CommaSpacing>; /** * Enforce consistent comma style * @see https://eslint.org/docs/latest/rules/comma-style * @deprecated */ "comma-style"?: Linter.RuleEntry<CommaStyle>; /** * Enforce a maximum cyclomatic complexity allowed in a program * @see https://eslint.org/docs/latest/rules/complexity */ complexity?: Linter.RuleEntry<Complexity>; /** * Enforce consistent spacing inside computed property brackets * @see https://eslint.org/docs/latest/rules/computed-property-spacing * @deprecated */ "computed-property-spacing"?: Linter.RuleEntry<ComputedPropertySpacing>; /** * Require `return` statements to either always or never specify values * @see https://eslint.org/docs/latest/rules/consistent-return */ "consistent-return"?: Linter.RuleEntry<ConsistentReturn>; /** * Enforce consistent naming when capturing the current execution context * @see https://eslint.org/docs/latest/rules/consistent-this */ "consistent-this"?: Linter.RuleEntry<ConsistentThis>; /** * Require `super()` calls in constructors * @see https://eslint.org/docs/latest/rules/constructor-super */ "constructor-super"?: Linter.RuleEntry<[]>; /** * Enforce consistent brace style for all control statements * @see https://eslint.org/docs/latest/rules/curly */ curly?: Linter.RuleEntry<Curly>; /** * Require `default` cases in `switch` statements * @see https://eslint.org/docs/latest/rules/default-case */ "default-case"?: Linter.RuleEntry<DefaultCase>; /** * Enforce `default` clauses in `switch` statements to be last * @see https://eslint.org/docs/latest/rules/default-case-last */ "default-case-last"?: Linter.RuleEntry<[]>; /** * Enforce default parameters to be last * @see https://eslint.org/docs/latest/rules/default-param-last */ "default-param-last"?: Linter.RuleEntry<[]>; /** * Enforce consistent newlines before and after dots * @see https://eslint.org/docs/latest/rules/dot-location * @deprecated */ "dot-location"?: Linter.RuleEntry<DotLocation>; /** * Enforce dot notation whenever possible * @see https://eslint.org/docs/latest/rules/dot-notation */ "dot-notation"?: Linter.RuleEntry<DotNotation>; /** * Require or disallow newline at the end of files * @see https://eslint.org/docs/latest/rules/eol-last * @deprecated */ "eol-last"?: Linter.RuleEntry<EolLast>; /** * Require the use of `===` and `!==` * @see https://eslint.org/docs/latest/rules/eqeqeq */ eqeqeq?: Linter.RuleEntry<Eqeqeq>; /** * Enforce `for` loop update clause moving the counter in the right direction * @see https://eslint.org/docs/latest/rules/for-direction */ "for-direction"?: Linter.RuleEntry<[]>; /** * Require or disallow spacing between function identifiers and their invocations * @see https://eslint.org/docs/latest/rules/func-call-spacing * @deprecated */ "func-call-spacing"?: Linter.RuleEntry<FuncCallSpacing>; /** * Require function names to match the name of the variable or property to which they are assigned * @see https://eslint.org/docs/latest/rules/func-name-matching */ "func-name-matching"?: Linter.RuleEntry<FuncNameMatching>; /** * Require or disallow named `function` expressions * @see https://eslint.org/docs/latest/rules/func-names */ "func-names"?: Linter.RuleEntry<FuncNames>; /** * Enforce the consistent use of either `function` declarations or expressions assigned to variables * @see https://eslint.org/docs/latest/rules/func-style */ "func-style"?: Linter.RuleEntry<FuncStyle>; /** * Enforce line breaks between arguments of a function call * @see https://eslint.org/docs/latest/rules/function-call-argument-newline * @deprecated */ "function-call-argument-newline"?: Linter.RuleEntry<FunctionCallArgumentNewline>; /** * Enforce consistent line breaks inside function parentheses * @see https://eslint.org/docs/latest/rules/function-paren-newline * @deprecated */ "function-paren-newline"?: Linter.RuleEntry<FunctionParenNewline>; /** * Enforce consistent spacing around `*` operators in generator functions * @see https://eslint.org/docs/latest/rules/generator-star-spacing * @deprecated */ "generator-star-spacing"?: Linter.RuleEntry<GeneratorStarSpacing>; /** * Enforce `return` statements in getters * @see https://eslint.org/docs/latest/rules/getter-return */ "getter-return"?: Linter.RuleEntry<GetterReturn>; /** * Require `require()` calls to be placed at top-level module scope * @see https://eslint.org/docs/latest/rules/global-require * @deprecated */ "global-require"?: Linter.RuleEntry<[]>; /** * Require grouped accessor pairs in object literals and classes * @see https://eslint.org/docs/latest/rules/grouped-accessor-pairs */ "grouped-accessor-pairs"?: Linter.RuleEntry<GroupedAccessorPairs>; /** * Require `for-in` loops to include an `if` statement * @see https://eslint.org/docs/latest/rules/guard-for-in */ "guard-for-in"?: Linter.RuleEntry<[]>; /** * Require error handling in callbacks * @see https://eslint.org/docs/latest/rules/handle-callback-err * @deprecated */ "handle-callback-err"?: Linter.RuleEntry<HandleCallbackErr>; /** * Disallow specified identifiers * @see https://eslint.org/docs/latest/rules/id-blacklist * @deprecated */ "id-blacklist"?: Linter.RuleEntry<IdBlacklist>; /** * Disallow specified identifiers * @see https://eslint.org/docs/latest/rules/id-denylist */ "id-denylist"?: Linter.RuleEntry<IdDenylist>; /** * Enforce minimum and maximum identifier lengths * @see https://eslint.org/docs/latest/rules/id-length */ "id-length"?: Linter.RuleEntry<IdLength>; /** * Require identifiers to match a specified regular expression * @see https://eslint.org/docs/latest/rules/id-match */ "id-match"?: Linter.RuleEntry<IdMatch>; /** * Enforce the location of arrow function bodies * @see https://eslint.org/docs/latest/rules/implicit-arrow-linebreak * @deprecated */ "implicit-arrow-linebreak"?: Linter.RuleEntry<ImplicitArrowLinebreak>; /** * Enforce consistent indentation * @see https://eslint.org/docs/latest/rules/indent * @deprecated */ indent?: Linter.RuleEntry<Indent>; /** * Enforce consistent indentation * @see https://eslint.org/docs/latest/rules/indent-legacy * @deprecated */ "indent-legacy"?: Linter.RuleEntry<IndentLegacy>; /** * Require or disallow initialization in variable declarations * @see https://eslint.org/docs/latest/rules/init-declarations */ "init-declarations"?: Linter.RuleEntry<InitDeclarations>; /** * Enforce the consistent use of either double or single quotes in JSX attributes * @see https://eslint.org/docs/latest/rules/jsx-quotes * @deprecated */ "jsx-quotes"?: Linter.RuleEntry<JsxQuotes>; /** * Enforce consistent spacing between keys and values in object literal properties * @see https://eslint.org/docs/latest/rules/key-spacing * @deprecated */ "key-spacing"?: Linter.RuleEntry<KeySpacing>; /** * Enforce consistent spacing before and after keywords * @see https://eslint.org/docs/latest/rules/keyword-spacing * @deprecated */ "keyword-spacing"?: Linter.RuleEntry<KeywordSpacing>; /** * Enforce position of line comments * @see https://eslint.org/docs/latest/rules/line-comment-position * @deprecated */ "line-comment-position"?: Linter.RuleEntry<LineCommentPosition>; /** * Enforce consistent linebreak style * @see https://eslint.org/docs/latest/rules/linebreak-style * @deprecated */ "linebreak-style"?: Linter.RuleEntry<LinebreakStyle>; /** * Require empty lines around comments * @see https://eslint.org/docs/latest/rules/lines-around-comment * @deprecated */ "lines-around-comment"?: Linter.RuleEntry<LinesAroundComment>; /** * Require or disallow newlines around directives * @see https://eslint.org/docs/latest/rules/lines-around-directive * @deprecated */ "lines-around-directive"?: Linter.RuleEntry<LinesAroundDirective>; /** * Require or disallow an empty line between class members * @see https://eslint.org/docs/latest/rules/lines-between-class-members * @deprecated */ "lines-between-class-members"?: Linter.RuleEntry<LinesBetweenClassMembers>; /** * Require or disallow logical assignment operator shorthand * @see https://eslint.org/docs/latest/rules/logical-assignment-operators */ "logical-assignment-operators"?: Linter.RuleEntry<LogicalAssignmentOperators>; /** * Enforce a maximum number of classes per file * @see https://eslint.org/docs/latest/rules/max-classes-per-file */ "max-classes-per-file"?: Linter.RuleEntry<MaxClassesPerFile>; /** * Enforce a maximum depth that blocks can be nested * @see https://eslint.org/docs/latest/rules/max-depth */ "max-depth"?: Linter.RuleEntry<MaxDepth>; /** * Enforce a maximum line length * @see https://eslint.org/docs/latest/rules/max-len * @deprecated */ "max-len"?: Linter.RuleEntry<MaxLen>; /** * Enforce a maximum number of lines per file * @see https://eslint.org/docs/latest/rules/max-lines */ "max-lines"?: Linter.RuleEntry<MaxLines>; /** * Enforce a maximum number of lines of code in a function * @see https://eslint.org/docs/latest/rules/max-lines-per-function */ "max-lines-per-function"?: Linter.RuleEntry<MaxLinesPerFunction>; /** * Enforce a maximum depth that callbacks can be nested * @see https://eslint.org/docs/latest/rules/max-nested-callbacks */ "max-nested-callbacks"?: Linter.RuleEntry<MaxNestedCallbacks>; /** * Enforce a maximum number of parameters in function definitions * @see https://eslint.org/docs/latest/rules/max-params */ "max-params"?: Linter.RuleEntry<MaxParams>; /** * Enforce a maximum number of statements allowed in function blocks * @see https://eslint.org/docs/latest/rules/max-statements */ "max-statements"?: Linter.RuleEntry<MaxStatements>; /** * Enforce a maximum number of statements allowed per line * @see https://eslint.org/docs/latest/rules/max-statements-per-line * @deprecated */ "max-statements-per-line"?: Linter.RuleEntry<MaxStatementsPerLine>; /** * Enforce a particular style for multiline comments * @see https://eslint.org/docs/latest/rules/multiline-comment-style * @deprecated */ "multiline-comment-style"?: Linter.RuleEntry<MultilineCommentStyle>; /** * Enforce newlines between operands of ternary expressions * @see https://eslint.org/docs/latest/rules/multiline-ternary * @deprecated */ "multiline-ternary"?: Linter.RuleEntry<MultilineTernary>; /** * Require constructor names to begin with a capital letter * @see https://eslint.org/docs/latest/rules/new-cap */ "new-cap"?: Linter.RuleEntry<NewCap>; /** * Enforce or disallow parentheses when invoking a constructor with no arguments * @see https://eslint.org/docs/latest/rules/new-parens * @deprecated */ "new-parens"?: Linter.RuleEntry<NewParens>; /** * Require or disallow an empty line after variable declarations * @see https://eslint.org/docs/latest/rules/newline-after-var * @deprecated */ "newline-after-var"?: Linter.RuleEntry<NewlineAfterVar>; /** * Require an empty line before `return` statements * @see https://eslint.org/docs/latest/rules/newline-before-return * @deprecated */ "newline-before-return"?: Linter.RuleEntry<[]>; /** * Require a newline after each call in a method chain * @see https://eslint.org/docs/latest/rules/newline-per-chained-call * @deprecated */ "newline-per-chained-call"?: Linter.RuleEntry<NewlinePerChainedCall>; /** * Disallow the use of `alert`, `confirm`, and `prompt` * @see https://eslint.org/docs/latest/rules/no-alert */ "no-alert"?: Linter.RuleEntry<[]>; /** * Disallow `Array` constructors * @see https://eslint.org/docs/latest/rules/no-array-constructor */ "no-array-constructor"?: Linter.RuleEntry<[]>; /** * Disallow using an async function as a Promise executor * @see https://eslint.org/docs/latest/rules/no-async-promise-executor */ "no-async-promise-executor"?: Linter.RuleEntry<[]>; /** * Disallow `await` inside of loops * @see https://eslint.org/docs/latest/rules/no-await-in-loop */ "no-await-in-loop"?: Linter.RuleEntry<[]>; /** * Disallow bitwise operators * @see https://eslint.org/docs/latest/rules/no-bitwise */ "no-bitwise"?: Linter.RuleEntry<NoBitwise>; /** * Disallow use of the `Buffer()` constructor * @see https://eslint.org/docs/latest/rules/no-buffer-constructor * @deprecated */ "no-buffer-constructor"?: Linter.RuleEntry<[]>; /** * Disallow the use of `arguments.caller` or `arguments.callee` * @see https://eslint.org/docs/latest/rules/no-caller */ "no-caller"?: Linter.RuleEntry<[]>; /** * Disallow lexical declarations in case clauses * @see https://eslint.org/docs/latest/rules/no-case-declarations */ "no-case-declarations"?: Linter.RuleEntry<[]>; /** * Disallow `catch` clause parameters from shadowing variables in the outer scope * @see https://eslint.org/docs/latest/rules/no-catch-shadow * @deprecated */ "no-catch-shadow"?: Linter.RuleEntry<[]>; /** * Disallow reassigning class members * @see https://eslint.org/docs/latest/rules/no-class-assign */ "no-class-assign"?: Linter.RuleEntry<[]>; /** * Disallow comparing against `-0` * @see https://eslint.org/docs/latest/rules/no-compare-neg-zero */ "no-compare-neg-zero"?: Linter.RuleEntry<[]>; /** * Disallow assignment operators in conditional expressions * @see https://eslint.org/docs/latest/rules/no-cond-assign */ "no-cond-assign"?: Linter.RuleEntry<NoCondAssign>; /** * Disallow arrow functions where they could be confused with comparisons * @see https://eslint.org/docs/latest/rules/no-confusing-arrow * @deprecated */ "no-confusing-arrow"?: Linter.RuleEntry<NoConfusingArrow>; /** * Disallow the use of `console` * @see https://eslint.org/docs/latest/rules/no-console */ "no-console"?: Linter.RuleEntry<NoConsole>; /** * Disallow reassigning `const`, `using`, and `await using` variables * @see https://eslint.org/docs/latest/rules/no-const-assign */ "no-const-assign"?: Linter.RuleEntry<[]>; /** * Disallow expressions where the operation doesn't affect the value * @see https://eslint.org/docs/latest/rules/no-constant-binary-expression */ "no-constant-binary-expression"?: Linter.RuleEntry<[]>; /** * Disallow constant expressions in conditions * @see https://eslint.org/docs/latest/rules/no-constant-condition */ "no-constant-condition"?: Linter.RuleEntry<NoConstantCondition>; /** * Disallow returning value from constructor * @see https://eslint.org/docs/latest/rules/no-constructor-return */ "no-constructor-return"?: Linter.RuleEntry<[]>; /** * Disallow `continue` statements * @see https://eslint.org/docs/latest/rules/no-continue */ "no-continue"?: Linter.RuleEntry<[]>; /** * Disallow control characters in regular expressions * @see https://eslint.org/docs/latest/rules/no-control-regex */ "no-control-regex"?: Linter.RuleEntry<[]>; /** * Disallow the use of `debugger` * @see https://eslint.org/docs/latest/rules/no-debugger */ "no-debugger"?: Linter.RuleEntry<[]>; /** * Disallow deleting variables * @see https://eslint.org/docs/latest/rules/no-delete-var */ "no-delete-var"?: Linter.RuleEntry<[]>; /** * Disallow equal signs explicitly at the beginning of regular expressions * @see https://eslint.org/docs/latest/rules/no-div-regex */ "no-div-regex"?: Linter.RuleEntry<[]>; /** * Disallow duplicate arguments in `function` definitions * @see https://eslint.org/docs/latest/rules/no-dupe-args */ "no-dupe-args"?: Linter.RuleEntry<[]>; /** * Disallow duplicate class members * @see https://eslint.org/docs/latest/rules/no-dupe-class-members */ "no-dupe-class-members"?: Linter.RuleEntry<[]>; /** * Disallow duplicate conditions in if-else-if chains * @see https://eslint.org/docs/latest/rules/no-dupe-else-if */ "no-dupe-else-if"?: Linter.RuleEntry<[]>; /** * Disallow duplicate keys in object literals * @see https://eslint.org/docs/latest/rules/no-dupe-keys */ "no-dupe-keys"?: Linter.RuleEntry<[]>; /** * Disallow duplicate case labels * @see https://eslint.org/docs/latest/rules/no-duplicate-case */ "no-duplicate-case"?: Linter.RuleEntry<[]>; /** * Disallow duplicate module imports * @see https://eslint.org/docs/latest/rules/no-duplicate-imports */ "no-duplicate-imports"?: Linter.RuleEntry<NoDuplicateImports>; /** * Disallow `else` blocks after `return` statements in `if` statements * @see https://eslint.org/docs/latest/rules/no-else-return */ "no-else-return"?: Linter.RuleEntry<NoElseReturn>; /** * Disallow empty block statements * @see https://eslint.org/docs/latest/rules/no-empty */ "no-empty"?: Linter.RuleEntry<NoEmpty>; /** * Disallow empty character classes in regular expressions * @see https://eslint.org/docs/latest/rules/no-empty-character-class */ "no-empty-character-class"?: Linter.RuleEntry<[]>; /** * Disallow empty functions * @see https://eslint.org/docs/latest/rules/no-empty-function */ "no-empty-function"?: Linter.RuleEntry<NoEmptyFunction>; /** * Disallow empty destructuring patterns * @see https://eslint.org/docs/latest/rules/no-empty-pattern */ "no-empty-pattern"?: Linter.RuleEntry<NoEmptyPattern>; /** * Disallow empty static blocks * @see https://eslint.org/docs/latest/rules/no-empty-static-block */ "no-empty-static-block"?: Linter.RuleEntry<[]>; /** * Disallow `null` comparisons without type-checking operators * @see https://eslint.org/docs/latest/rules/no-eq-null */ "no-eq-null"?: Linter.RuleEntry<[]>; /** * Disallow the use of `eval()` * @see https://eslint.org/docs/latest/rules/no-eval */ "no-eval"?: Linter.RuleEntry<NoEval>; /** * Disallow reassigning exceptions in `catch` clauses * @see https://eslint.org/docs/latest/rules/no-ex-assign */ "no-ex-assign"?: Linter.RuleEntry<[]>; /** * Disallow extending native types * @see https://eslint.org/docs/latest/rules/no-extend-native */ "no-extend-native"?: Linter.RuleEntry<NoExtendNative>; /** * Disallow unnecessary calls to `.bind()` * @see https://eslint.org/docs/latest/rules/no-extra-bind */ "no-extra-bind"?: Linter.RuleEntry<[]>; /** * Disallow unnecessary boolean casts * @see https://eslint.org/docs/latest/rules/no-extra-boolean-cast */ "no-extra-boolean-cast"?: Linter.RuleEntry<NoExtraBooleanCast>; /** * Disallow unnecessary labels * @see https://eslint.org/docs/latest/rules/no-extra-label */ "no-extra-label"?: Linter.RuleEntry<[]>; /** * Disallow unnecessary parentheses * @see https://eslint.org/docs/latest/rules/no-extra-parens * @deprecated */ "no-extra-parens"?: Linter.RuleEntry<NoExtraParens>; /** * Disallow unnecessary semicolons * @see https://eslint.org/docs/latest/rules/no-extra-semi * @deprecated */ "no-extra-semi"?: Linter.RuleEntry<[]>; /** * Disallow fallthrough of `case` statements * @see https://eslint.org/docs/latest/rules/no-fallthrough */ "no-fallthrough"?: Linter.RuleEntry<NoFallthrough>; /** * Disallow leading or trailing decimal points in numeric literals * @see https://eslint.org/docs/latest/rules/no-floating-decimal * @deprecated */ "no-floating-decimal"?: Linter.RuleEntry<[]>; /** * Disallow reassigning `function` declarations * @see https://eslint.org/docs/latest/rules/no-func-assign */ "no-func-assign"?: Linter.RuleEntry<[]>; /** * Disallow assignments to native objects or read-only global variables * @see https://eslint.org/docs/latest/rules/no-global-assign */ "no-global-assign"?: Linter.RuleEntry<NoGlobalAssign>; /** * Disallow shorthand type conversions * @see https://eslint.org/docs/latest/rules/no-implicit-coercion */ "no-implicit-coercion"?: Linter.RuleEntry<NoImplicitCoercion>; /** * Disallow declarations in the global scope * @see https://eslint.org/docs/latest/rules/no-implicit-globals */ "no-implicit-globals"?: Linter.RuleEntry<NoImplicitGlobals>; /** * Disallow the use of `eval()`-like methods * @see https://eslint.org/docs/latest/rules/no-implied-eval */ "no-implied-eval"?: Linter.RuleEntry<[]>; /** * Disallow assigning to imported bindings * @see https://eslint.org/docs/latest/rules/no-import-assign */ "no-import-assign"?: Linter.RuleEntry<[]>; /** * Disallow inline comments after code * @see https://eslint.org/docs/latest/rules/no-inline-comments */ "no-inline-comments"?: Linter.RuleEntry<NoInlineComments>; /** * Disallow variable or `function` declarations in nested blocks * @see https://eslint.org/docs/latest/rules/no-inner-declarations */ "no-inner-declarations"?: Linter.RuleEntry<NoInnerDeclarations>; /** * Disallow invalid regular expression strings in `RegExp` constructors * @see https://eslint.org/docs/latest/rules/no-invalid-regexp */ "no-invalid-regexp"?: Linter.RuleEntry<NoInvalidRegexp>; /** * Disallow use of `this` in contexts where the value of `this` is `undefined` * @see https://eslint.org/docs/latest/rules/no-invalid-this */ "no-invalid-this"?: Linter.RuleEntry<NoInvalidThis>; /** * Disallow irregular whitespace * @see https://eslint.org/docs/latest/rules/no-irregular-whitespace */ "no-irregular-whitespace"?: Linter.RuleEntry<NoIrregularWhitespace>; /** * Disallow the use of the `__iterator__` property * @see https://eslint.org/docs/latest/rules/no-iterator */ "no-iterator"?: Linter.RuleEntry<[]>; /** * Disallow labels that share a name with a variable * @see https://eslint.org/docs/latest/rules/no-label-var */ "no-label-var"?: Linter.RuleEntry<[]>; /** * Disallow labeled statements * @see https://eslint.org/docs/latest/rules/no-labels */ "no-labels"?: Linter.RuleEntry<NoLabels>; /** * Disallow unnecessary nested blocks * @see https://eslint.org/docs/latest/rules/no-lone-blocks */ "no-lone-blocks"?: Linter.RuleEntry<[]>; /** * Disallow `if` statements as the only statement in `else` blocks * @see https://eslint.org/docs/latest/rules/no-lonely-if */ "no-lonely-if"?: Linter.RuleEntry<[]>; /** * Disallow function declarations that contain unsafe references inside loop statements * @see https://eslint.org/docs/latest/rules/no-loop-func */ "no-loop-func"?: Linter.RuleEntry<[]>; /** * Disallow literal numbers that lose precision * @see https://eslint.org/docs/latest/rules/no-loss-of-precision */ "no-loss-of-precision"?: Linter.RuleEntry<[]>; /** * Disallow magic numbers * @see https://eslint.org/docs/latest/rules/no-magic-numbers */ "no-magic-numbers"?: Linter.RuleEntry<NoMagicNumbers>; /** * Disallow characters which are made with multiple code points in character class syntax * @see https://eslint.org/docs/latest/rules/no-misleading-character-class */ "no-misleading-character-class"?: Linter.RuleEntry<NoMisleadingCharacterClass>; /** * Disallow mixed binary operators * @see https://eslint.org/docs/latest/rules/no-mixed-operators * @deprecated */ "no-mixed-operators"?: Linter.RuleEntry<NoMixedOperators>; /** * Disallow `require` calls to be mixed with regular variable declarations * @see https://eslint.org/docs/latest/rules/no-mixed-requires * @deprecated */ "no-mixed-requires"?: Linter.RuleEntry<NoMixedRequires>; /** * Disallow mixed spaces and tabs for indentation * @see https://eslint.org/docs/latest/rules/no-mixed-spaces-and-tabs * @deprecated */ "no-mixed-spaces-and-tabs"?: Linter.RuleEntry<NoMixedSpacesAndTabs>; /** * Disallow use of chained assignment expressions * @see https://eslint.org/docs/latest/rules/no-multi-assign */ "no-multi-assign"?: Linter.RuleEntry<NoMultiAssign>; /** * Disallow multiple spaces * @see https://eslint.org/docs/latest/rules/no-multi-spaces * @deprecated */ "no-multi-spaces"?: Linter.RuleEntry<NoMultiSpaces>; /** * Disallow multiline strings * @see https://eslint.org/docs/latest/rules/no-multi-str */ "no-multi-str"?: Linter.RuleEntry<[]>; /** * Disallow multiple empty lines * @see https://eslint.org/docs/latest/rules/no-multiple-empty-lines * @deprecated */ "no-multiple-empty-lines"?: Linter.RuleEntry<NoMultipleEmptyLines>; /** * Disallow assignments to native objects or read-only global variables * @see https://eslint.org/docs/latest/rules/no-native-reassign * @deprecated */ "no-native-reassign"?: Linter.RuleEntry<NoNativeReassign>; /** * Disallow negated conditions * @see https://eslint.org/docs/latest/rules/no-negated-condition */ "no-negated-condition"?: Linter.RuleEntry<[]>; /** * Disallow negating the left operand in `in` expressions * @see https://eslint.org/docs/latest/rules/no-negated-in-lhs * @deprecated */ "no-negated-in-lhs"?: Linter.RuleEntry<[]>; /** * Disallow nested ternary expressions * @see https://eslint.org/docs/latest/rules/no-nested-ternary */ "no-nested-ternary"?: Linter.RuleEntry<[]>; /** * Disallow `new` operators outside of assignments or comparisons * @see https://eslint.org/docs/latest/rules/no-new */ "no-new"?: Linter.RuleEntry<[]>; /** * Disallow `new` operators with the `Function` object * @see https://eslint.org/docs/latest/rules/no-new-func */ "no-new-func"?: Linter.RuleEntry<[]>; /** * Disallow `new` operators with global non-constructor functions * @see https://eslint.org/docs/latest/rules/no-new-native-nonconstructor */ "no-new-native-nonconstructor"?: Linter.RuleEntry<[]>; /** * Disallow `Object` constructors * @see https://eslint.org/docs/latest/rules/no-new-object * @deprecated */ "no-new-object"?: Linter.RuleEntry<[]>; /** * Disallow `new` operators with calls to `require` * @see https://eslint.org/docs/latest/rules/no-new-require * @deprecated */ "no-new-require"?: Linter.RuleEntry<[]>; /** * Disallow `new` operators with the `Symbol` object * @see https://eslint.org/docs/latest/rules/no-new-symbol * @deprecated */ "no-new-symbol"?: Linter.RuleEntry<[]>; /** * Disallow `new` operators with the `String`, `Number`, and `Boolean` objects * @see https://eslint.org/docs/latest/rules/no-new-wrappers */ "no-new-wrappers"?: Linter.RuleEntry<[]>; /** * Disallow `\8` and `\9` escape sequences in string literals * @see https://eslint.org/docs/latest/rules/no-nonoctal-decimal-escape */ "no-nonoctal-decimal-escape"?: Linter.RuleEntry<[]>; /** * Disallow calling global object properties as functions * @see https://eslint.org/docs/latest/rules/no-obj-calls */ "no-obj-calls"?: Linter.RuleEntry<[]>; /** * Disallow calls to the `Object` constructor without an argument * @see https://eslint.org/docs/latest/rules/no-object-constructor */ "no-object-constructor"?: Linter.RuleEntry<[]>; /** * Disallow octal literals * @see https://eslint.org/docs/latest/rules/no-octal */ "no-octal"?: Linter.RuleEntry<[]>; /** * Disallow octal escape sequences in string literals * @see https://eslint.org/docs/latest/rules/no-octal-escape */ "no-octal-escape"?: Linter.RuleEntry<[]>; /** * Disallow reassigning function parameters * @see https://eslint.org/docs/latest/rules/no-param-reassign */ "no-param-reassign"?: Linter.RuleEntry<NoParamReassign>; /** * Disallow string concatenation with `__dirname` and `__filename` * @see https://eslint.org/docs/latest/rules/no-path-concat * @deprecated */ "no-path-concat"?: Linter.RuleEntry<[]>; /** * Disallow the unary operators `++` and `--` * @see https://eslint.org/docs/latest/rules/no-plusplus */ "no-plusplus"?: Linter.RuleEntry<NoPlusplus>; /** * Disallow the use of `process.env` * @see https://eslint.org/docs/latest/rules/no-process-env * @deprecated */ "no-process-env"?: Linter.RuleEntry<[]>; /** * Disallow the use of `process.exit()` * @see https://eslint.org/docs/latest/rules/no-process-exit * @deprecated */ "no-process-exit"?: Linter.RuleEntry<[]>; /** * Disallow returning values from Promise executor functions * @see https://eslint.org/docs/latest/rules/no-promise-executor-return */ "no-promise-executor-return"?: Linter.RuleEntry<NoPromiseExecutorReturn>; /** * Disallow the use of the `__proto__` property * @see https://eslint.org/docs/latest/rules/no-proto */ "no-proto"?: Linter.RuleEntry<[]>; /** * Disallow calling some `Object.prototype` methods directly on objects * @see https://eslint.org/docs/latest/rules/no-prototype-builtins */ "no-prototype-builtins"?: Linter.RuleEntry<[]>; /** * Disallow variable redeclaration * @see https://eslint.org/docs/latest/rules/no-redeclare */ "no-redeclare"?: Linter.RuleEntry<NoRedeclare>; /** * Disallow multiple spaces in regular expressions * @see https://eslint.org/docs/latest/rules/no-regex-spaces */ "no-regex-spaces"?: Linter.RuleEntry<[]>; /** * Disallow specified names in exports * @see https://eslint.org/docs/latest/rules/no-restricted-exports */ "no-restricted-exports"?: Linter.RuleEntry<NoRestrictedExports>; /** * Disallow specified global variables * @see https://eslint.org/docs/latest/rules/no-restricted-globals */ "no-restricted-globals"?: Linter.RuleEntry<NoRestrictedGlobals>; /** * Disallow specified modules when loaded by `import` * @see https://eslint.org/docs/latest/rules/no-restricted-imports */ "no-restricted-imports"?: Linter.RuleEntry<NoRestrictedImports>; /** * Disallow specified modules when loaded by `require` * @see https://eslint.org/docs/latest/rules/no-restricted-modules * @deprecated */ "no-restricted-modules"?: Linter.RuleEntry<NoRestrictedModules>; /** * Disallow certain properties on certain objects * @see https://eslint.org/docs/latest/rules/no-restricted-properties */ "no-restricted-properties"?: Linter.RuleEntry<NoRestrictedProperties>; /** * Disallow specified syntax * @see https://eslint.org/docs/latest/rules/no-restricted-syntax */ "no-restricted-syntax"?: Linter.RuleEntry<NoRestrictedSyntax>; /** * Disallow assignment operators in `return` statements * @see https://eslint.org/docs/latest/rules/no-return-assign */ "no-return-assign"?: Linter.RuleEntry<NoReturnAssign>; /** * Disallow unnecessary `return await` * @see https://eslint.org/docs/latest/rules/no-return-await * @deprecated */ "no-return-await"?: Linter.RuleEntry<[]>; /** * Disallow `javascript:` URLs * @see https://eslint.org/docs/latest/rules/no-script-url */ "no-script-url"?: Linter.RuleEntry<[]>; /** * Disallow assignments where both sides are exactly the same * @see https://eslint.org/docs/latest/rules/no-self-assign */ "no-self-assign"?: Linter.RuleEntry<NoSelfAssign>; /** * Disallow comparisons where both sides are exactly the same * @see https://eslint.org/docs/latest/rules/no-self-compare */ "no-self-compare"?: Linter.RuleEntry<[]>; /** * Disallow comma operators * @see https://eslint.org/docs/latest/rules/no-sequences */ "no-sequences"?: Linter.RuleEntry<NoSequences>; /** * Disallow returning values from setters * @see https://eslint.org/docs/latest/rules/no-setter-return */ "no-setter-return"?: Linter.RuleEntry<[]>; /** * Disallow variable declarations from shadowing variables declared in the outer scope * @see https://eslint.org/docs/latest/rules/no-shadow */ "no-shadow"?: Linter.RuleEntry<NoShadow>; /** * Disallow identifiers from shadowing restricted names * @see https://eslint.org/docs/latest/rules/no-shadow-restricted-names */ "no-shadow-restricted-names"?: Linter.RuleEntry<NoShadowRestrictedNames>; /** * Disallow spacing between function identifiers and their applications (deprecated) * @see https://eslint.org/docs/latest/rules/no-spaced-func * @deprecated */ "no-spaced-func"?: Linter.RuleEntry<[]>; /** * Disallow sparse arrays * @see https://eslint.org/docs/latest/rules/no-sparse-arrays */ "no-sparse-arrays"?: Linter.RuleEntry<[]>; /** * Disallow synchronous methods * @see https://eslint.org/docs/latest/rules/no-sync * @deprecated */ "no-sync"?: Linter.RuleEntry<NoSync>; /** * Disallow all tabs * @see https://eslint.org/docs/latest/rules/no-tabs * @deprecated */ "no-tabs"?: Linter.RuleEntry<NoTabs>; /** * Disallow template literal placeholder syntax in regular strings * @see https://eslint.org/docs/latest/rules/no-template-curly-in-string */ "no-template-curly-in-string"?: Linter.RuleEntry<[]>; /** * Disallow ternary operators * @see https://eslint.org/docs/latest/rules/no-ternary */ "no-ternary"?: Linter.RuleEntry<[]>; /** * Disallow `this`/`super` before calling `super()` in constructors * @see https://eslint.org/docs/latest/rules/no-this-before-super */ "no-this-before-super"?: Linter.RuleEntry<[]>; /** * Disallow throwing literals as exceptions * @see https://eslint.org/docs/latest/rules/no-throw-literal */ "no-throw-literal"?: Linter.RuleEntry<[]>; /** * Disallow trailing whitespace at the end of lines * @see https://eslint.org/docs/latest/rules/no-trailing-spaces * @deprecated */ "no-trailing-spaces"?: Linter.RuleEntry<NoTrailingSpaces>; /** * Disallow `let` or `var` variables that are read but never assigned * @see https://eslint.org/docs/latest/rules/no-unassigned-vars */ "no-unassigned-vars"?: Linter.RuleEntry<[]>; /** * Disallow the use of undeclared variables unless mentioned in `/*global *\/` comments * @see https://eslint.org/docs/latest/rules/no-undef */ "no-undef"?: Linter.RuleEntry<NoUndef>; /** * Disallow initializing variables to `undefined` * @see https://eslint.org/docs/latest/rules/no-undef-init */ "no-undef-init"?: Linter.RuleEntry<[]>; /** * Disallow the use of `undefined` as an identifier * @see https://eslint.org/docs/latest/rules/no-undefined */ "no-undefined"?: Linter.RuleEntry<[]>; /** * Disallow dangling underscores in identifiers * @see https://eslint.org/docs/latest/rules/no-underscore-dangle */ "no-underscore-dangle"?: Linter.RuleEntry<NoUnderscoreDangle>; /** * Disallow confusing multiline expressions * @see https://eslint.org/docs/latest/rules/no-unexpected-multiline */ "no-unexpected-multiline"?: Linter.RuleEntry<[]>; /** * Disallow unmodified loop conditions * @see https://eslint.org/docs/latest/rules/no-unmodified-loop-condition */ "no-unmodified-loop-condition"?: Linter.RuleEntry<[]>; /** * Disallow ternary operators when simpler alternatives exist * @see https://eslint.org/docs/latest/rules/no-unneeded-ternary */ "no-unneeded-ternary"?: Linter.RuleEntry<NoUnneededTernary>; /** * Disallow unreachable code after `return`, `throw`, `continue`, and `break` statements * @see https://eslint.org/docs/latest/rules/no-unreachable */ "no-unreachable"?: Linter.RuleEntry<[]>; /** * Disallow loops with a body that allows only one iteration * @see https://eslint.org/docs/latest/rules/no-unreachable-loop */ "no-unreachable-loop"?: Linter.RuleEntry<NoUnreachableLoop>; /** * Disallow control flow statements in `finally` blocks * @see https://eslint.org/docs/latest/rules/no-unsafe-finally */ "no-unsafe-finally"?: Linter.RuleEntry<[]>; /** * Disallow negating the left operand of relational operators * @see https://eslint.org/docs/latest/rules/no-unsafe-negation */ "no-unsafe-negation"?: Linter.RuleEntry<NoUnsafeNegation>; /** * Disallow use of optional chaining in contexts where the `undefined` value is not allowed * @see https://eslint.org/docs/latest/rules/no-unsafe-optional-chaining */ "no-unsafe-optional-chaining"?: Linter.RuleEntry<NoUnsafeOptionalChaining>; /** * Disallow unused expressions * @see https://eslint.org/docs/latest/rules/no-unused-expressions */ "no-unused-expressions"?: Linter.RuleEntry<NoUnusedExpressions>; /** * Disallow unused labels * @see https://eslint.org/docs/latest/rules/no-unused-labels */ "no-unused-labels"?: Linter.RuleEntry<[]>; /** * Disallow unused private class members * @see https://eslint.org/docs/latest/rules/no-unused-private-class-members */ "no-unused-private-class-members"?: Linter.RuleEntry<[]>; /** * Disallow unused variables * @see https://eslint.org/docs/latest/rules/no-unused-vars */ "no-unused-vars"?: Linter.RuleEntry<NoUnusedVars>; /** * Disallow the use of variables before they are defined * @see https://eslint.org/docs/latest/rules/no-use-before-define */ "no-use-before-define"?: Linter.RuleEntry<NoUseBeforeDefine>; /** * Disallow variable assignments when the value is not used * @see https://eslint.org/docs/latest/rules/no-useless-assignment */ "no-useless-assignment"?: Linter.RuleEntry<[]>; /** * Disallow useless backreferences in regular expressions * @see https://eslint.org/docs/latest/rules/no-useless-backreference */ "no-useless-backreference"?: Linter.RuleEntry<[]>; /** * Disallow unnecessary calls to `.call()` and `.apply()` * @see https://eslint.org/docs/latest/rules/no-useless-call */ "no-useless-call"?: Linter.RuleEntry<[]>; /** * Disallow unnecessary `catch` clauses * @see https://eslint.org/docs/latest/rules/no-useless-catch */ "no-useless-catch"?: Linter.RuleEntry<[]>; /** * Disallow unnecessary computed property keys in objects and classes * @see https://eslint.org/docs/latest/rules/no-useless-computed-key */ "no-useless-computed-key"?: Linter.RuleEntry<NoUselessComputedKey>; /** * Disallow unnecessary concatenation of literals or template literals * @see https://eslint.org/docs/latest/rules/no-useless-concat */ "no-useless-concat"?: Linter.RuleEntry<[]>; /** * Disallow unnecessary constructors * @see https://eslint.org/docs/latest/rules/no-useless-constructor */ "no-useless-constructor"?: Linter.RuleEntry<[]>; /** * Disallow unnecessary escape characters * @see https://eslint.org/docs/latest/rules/no-useless-escape */ "no-useless-escape"?: Linter.RuleEntry<NoUselessEscape>; /** * Disallow renaming import, export, and destructured assignments to the same name * @see https://eslint.org/docs/latest/rules/no-useless-rename */ "no-useless-rename"?: Linter.RuleEntry<NoUselessRename>; /** * Disallow redundant return statements * @see https://eslint.org/docs/latest/rules/no-useless-return */ "no-useless-return"?: Linter.RuleEntry<[]>; /** * Require `let` or `const` instead of `var` * @see https://eslint.org/docs/latest/rules/no-var */ "no-var"?: Linter.RuleEntry<[]>; /** * Disallow `void` operators * @see https://eslint.org/docs/latest/rules/no-void */ "no-void"?: Linter.RuleEntry<NoVoid>; /** * Disallow specified warning terms in comments * @see https://eslint.org/docs/latest/rules/no-warning-comments */ "no-warning-comments"?: Linter.RuleEntry<NoWarningComments>; /** * Disallow whitespace before properties * @see https://eslint.org/docs/latest/rules/no-whitespace-before-property * @deprecated */ "no-whitespace-before-property"?: Linter.RuleEntry<[]>; /** * Disallow `with` statements * @see https://eslint.org/docs/latest/rules/no-with */ "no-with"?: Linter.RuleEntry<[]>; /** * Enforce the location of single-line statements * @see https://eslint.org/docs/latest/rules/nonblock-statement-body-position * @deprecated */ "nonblock-statement-body-position"?: Linter.RuleEntry<NonblockStatementBodyPosition>; /** * Enforce consistent line breaks after opening and before closing braces * @see https://eslint.org/docs/latest/rules/object-curly-newline * @deprecated */ "object-curly-newline"?: Linter.RuleEntry<ObjectCurlyNewline>; /** * Enforce consistent spacing inside braces * @see https://eslint.org/docs/latest/rules/object-curly-spacing * @deprecated */ "object-curly-spacing"?: Linter.RuleEntry<ObjectCurlySpacing>; /** * Enforce placing object properties on separate lines * @see https://eslint.org/docs/latest/rules/object-property-newline * @deprecated */ "object-property-newline"?: Linter.RuleEntry<ObjectPropertyNewline>; /** * Require or disallow method and property shorthand syntax for object literals * @see https://eslint.org/docs/latest/rules/object-shorthand */ "object-shorthand"?: Linter.RuleEntry<ObjectShorthand>; /** * Enforce variables to be declared either together or separately in functions * @see https://eslint.org/docs/latest/rules/one-var */ "one-var"?: Linter.RuleEntry<OneVar>; /** * Require or disallow newlines around variable declarations * @see https://eslint.org/docs/latest/rules/one-var-declaration-per-line * @deprecated */ "one-var-declaration-per-line"?: Linter.RuleEntry<OneVarDeclarationPerLine>; /** * Require or disallow assignment operator shorthand where possible * @see https://eslint.org/docs/latest/rules/operator-assignment */ "operator-assignment"?: Linter.RuleEntry<OperatorAssignment>; /** * Enforce consistent linebreak style for operators * @see https://eslint.org/docs/latest/rules/operator-linebreak * @deprecated */ "operator-linebreak"?: Linter.RuleEntry<OperatorLinebreak>; /** * Require or disallow padding within blocks * @see https://eslint.org/docs/latest/rules/padded-blocks * @deprecated */ "padded-blocks"?: Linter.RuleEntry<PaddedBlocks>; /** * Require or disallow padding lines between statements * @see https://eslint.org/docs/latest/rules/padding-line-between-statements * @deprecated */ "padding-line-between-statements"?: Linter.RuleEntry<PaddingLineBetweenStatements>; /** * Require using arrow functions for callbacks * @see https://eslint.org/docs/latest/rules/prefer-arrow-callback */ "prefer-arrow-callback"?: Linter.RuleEntry<PreferArrowCallback>; /** * Require `const` declarations for variables that are never reassigned after declared * @see https://eslint.org/docs/latest/rules/prefer-const */ "prefer-const"?: Linter.RuleEntry<PreferConst>; /** * Require destructuring from arrays and/or objects * @see https://eslint.org/docs/latest/rules/prefer-destructuring */ "prefer-destructuring"?: Linter.RuleEntry<PreferDestructuring>; /** * Disallow the use of `Math.pow` in favor of the `**` operator * @see https://eslint.org/docs/latest/rules/prefer-exponentiation-operator */ "prefer-exponentiation-operator"?: Linter.RuleEntry<[]>; /** * Enforce using named capture group in regular expression * @see https://eslint.org/docs/latest/rules/prefer-named-capture-group */ "prefer-named-capture-group"?: Linter.RuleEntry<[]>; /** * Disallow `parseInt()` and `Number.parseInt()` in favor of binary, octal, and hexadecimal literals * @see https://eslint.org/docs/latest/rules/prefer-numeric-literals */ "prefer-numeric-literals"?: Linter.RuleEntry<[]>; /** * Disallow use of `Object.prototype.hasOwnProperty.call()` and prefer use of `Object.hasOwn()` * @see https://eslint.org/docs/latest/rules/prefer-object-has-own */ "prefer-object-has-own"?: Linter.RuleEntry<[]>; /** * Disallow using `Object.assign` with an object literal as the first argument and prefer the use of object spread instead * @see https://eslint.org/docs/latest/rules/prefer-object-spread */ "prefer-object-spread"?: Linter.RuleEntry<[]>; /** * Require using Error objects as Promise rejection reasons * @see https://eslint.org/docs/latest/rules/prefer-promise-reject-errors */ "prefer-promise-reject-errors"?: Linter.RuleEntry<PreferPromiseRejectErrors>; /** * Require `Reflect` methods where applicable * @see https://eslint.org/docs/latest/rules/prefer-reflect * @deprecated */ "prefer-reflect"?: Linter.RuleEntry<PreferReflect>; /** * Disallow use of the `RegExp` constructor in favor of regular expression literals * @see https://eslint.org/docs/latest/rules/prefer-regex-