/* eslint-disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run json-schema-to-typescript to regenerate this file. */ /** * ESLint supports the use of third-party plugins. Before using the plugin, you have to install it using npm. */ export type Plugins = string[]; /** * ESLint comes with a large number of rules. You can modify which rules your project uses either using configuration comments or configuration files. */ export type Rules = PossibleErrors & BestPractices & StrictMode & Variables & NodeAndCommonJs & StylisticIssues & EcmaScript6 & Legacy & HttpsJsonSchemastoreOrgPartialEslintPluginsJson; /** * This interface was referenced by `JSONSchemaForESLintConfigurationFiles`'s JSON-Schema * via the `definition` "rule". */ export type Rule = number | ("off" | "warn" | "error") | unknown[]; /** * Allows to override configuration for files and folders, specified by glob patterns */ export type Overrides = { /** * Glob pattern for files to apply 'overrides' configuration, relative to the directory of the config file */ files: string | [string, ...string[]]; /** * If you want to extend a specific configuration file, you can use the extends property and specify the path to the file. The path can be either relative or absolute. */ extends?: string | string[]; /** * If a file matches any of the 'excludedFiles' glob patterns, the 'overrides' configuration won't apply */ excludedFiles?: string | string[]; ecmaFeatures?: EcmaFeatures; env?: Env; globals?: Globals; parser?: string; parserOptions?: ParserOptions; plugins?: Plugins; /** * To specify a processor, specify the plugin name and processor name joined by a forward slash */ processor?: string; rules?: Rules; settings?: Settings; overrides?: Overrides; }[]; /** * This interface was referenced by `JSONSchemaForESLintConfigurationFiles`'s JSON-Schema * via the `definition` "stringOrStringArray". */ export type StringOrStringArray = string | string[]; export interface JSONSchemaForESLintConfigurationFiles { ecmaFeatures?: EcmaFeatures; env?: Env; /** * If you want to extend a specific configuration file, you can use the extends property and specify the path to the file. The path can be either relative or absolute. */ extends?: string | string[]; globals?: Globals; /** * Prevent comments from changing config or rules */ noInlineConfig?: boolean; /** * Report unused eslint-disable comments */ reportUnusedDisableDirectives?: boolean; parser?: string; parserOptions?: ParserOptions; plugins?: Plugins; /** * By default, ESLint will look for configuration files in all parent folders up to the root directory. This can be useful if you want all of your projects to follow a certain convention, but can sometimes lead to unexpected results. To limit ESLint to a specific project, set this to `true` in a configuration in the root of your project. */ root?: boolean; /** * Tell ESLint to ignore specific files and directories. Each value uses the same pattern as the `.eslintignore` file. */ ignorePatterns?: string | string[]; rules?: Rules; settings?: Settings; overrides?: Overrides; [k: string]: unknown; } /** * By default, ESLint supports only ECMAScript 5 syntax. You can override that setting to enable support for ECMAScript 6 as well as JSX by using configuration settings. */ export interface EcmaFeatures { arrowFunctions?: boolean; binaryLiterals?: boolean; blockBindings?: boolean; classes?: boolean; defaultParams?: boolean; destructuring?: boolean; /** * Enables support for the experimental object rest/spread properties (IMPORTANT: This is an experimental feature that may change significantly in the future. It's recommended that you do not write rules relying on this functionality unless you are willing to incur maintenance cost when it changes.) */ experimentalObjectRestSpread?: boolean; forOf?: boolean; generators?: boolean; /** * allow return statements in the global scope */ globalReturn?: boolean; /** * enable global strict mode (if ecmaVersion is 5 or greater) */ impliedStrict?: boolean; /** * enable JSX */ jsx?: boolean; modules?: boolean; objectLiteralComputedProperties?: boolean; objectLiteralDuplicateProperties?: boolean; objectLiteralShorthandMethods?: boolean; objectLiteralShorthandProperties?: boolean; octalLiterals?: boolean; regexUFlag?: boolean; regexYFlag?: boolean; restParams?: boolean; spread?: boolean; superInFunctions?: boolean; templateStrings?: boolean; unicodeCodePointEscapes?: boolean; [k: string]: unknown; } /** * An environment defines global variables that are predefined. */ export interface Env { /** * defines require() and define() as global variables as per the amd spec */ amd?: boolean; /** * AppleScript global variables */ applescript?: boolean; /** * Atom test helper globals */ atomtest?: boolean; /** * browser global variables */ browser?: boolean; /** * CommonJS global variables and CommonJS scoping (use this for browser-only code that uses Browserify/WebPack) */ commonjs?: boolean; /** * Globals common to both Node and Browser */ "shared-node-browser"?: boolean; /** * Ember test helper globals */ embertest?: boolean; /** * enable all ECMAScript 6 features except for modules */ es6?: boolean; /** * GreaseMonkey globals */ greasemonkey?: boolean; /** * adds all of the Jasmine testing global variables for version 1.3 and 2.0 */ jasmine?: boolean; /** * Jest global variables */ jest?: boolean; /** * jQuery global variables */ jquery?: boolean; /** * Meteor global variables */ meteor?: boolean; /** * adds all of the Mocha test global variables */ mocha?: boolean; /** * MongoDB global variables */ mongo?: boolean; /** * Java 8 Nashorn global variables */ nashorn?: boolean; /** * Node.js global variables and Node.js scoping */ node?: boolean; /** * PhantomJS global variables */ phantomjs?: boolean; /** * Prototype.js global variables */ prototypejs?: boolean; /** * Protractor global variables */ protractor?: boolean; /** * QUnit global variables */ qunit?: boolean; /** * Service Worker global variables */ serviceworker?: boolean; /** * ShellJS global variables */ shelljs?: boolean; /** * WebExtensions globals */ webextensions?: boolean; /** * web workers global variables */ worker?: boolean; [k: string]: unknown; } /** * Set each global variable name equal to true to allow the variable to be overwritten or false to disallow overwriting. */ export interface Globals { [k: string]: ("readonly" | "writable" | "off") | boolean; } /** * The JavaScript language options to be supported */ export interface ParserOptions { ecmaFeatures?: EcmaFeatures; /** * Set to 3, 5 (default), 6, 7, 8, 9, 10, 11, 12, 13, 14, or 15 to specify the version of ECMAScript syntax you want to use. You can also set it to 2015 (same as 6), 2016 (same as 7), 2017 (same as 8), 2018 (same as 9), 2019 (same as 10), 2020 (same as 11), 2021 (same as 12), 2022 (same as 13), 2023 (same as 14), or 2024 (same as 15) to use the year-based naming. You can also set "latest" to use the most recently supported version. */ ecmaVersion?: | 3 | 5 | 6 | 2015 | 7 | 2016 | 8 | 2017 | 9 | 2018 | 10 | 2019 | 11 | 2020 | 12 | 2021 | 13 | 2022 | 14 | 2023 | 15 | 2024 | "latest"; /** * set to "script" (default), "commonjs", or "module" if your code is in ECMAScript modules */ sourceType?: "script" | "module" | "commonjs"; [k: string]: unknown; } /** * This interface was referenced by `JSONSchemaForESLintConfigurationFiles`'s JSON-Schema * via the `definition` "possibleErrors". */ export interface PossibleErrors { /** * Require or disallow trailing commas */ "comma-dangle"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce "for" loop update clause moving the counter in the right direction */ "for-direction"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce return statements in getters */ "getter-return"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow await inside of loops */ "no-await-in-loop"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow comparing against -0 */ "no-compare-neg-zero"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow assignment operators in conditional expressions */ "no-cond-assign"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow the use of console */ "no-console"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow constant expressions in conditions */ "no-constant-condition"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow control characters in regular expressions */ "no-control-regex"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow the use of debugger */ "no-debugger"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow duplicate arguments in function definitions */ "no-dupe-args"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow duplicate keys in object literals */ "no-dupe-keys"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow duplicate case labels */ "no-duplicate-case"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow empty block statements */ "no-empty"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow empty character classes in regular expressions */ "no-empty-character-class"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow reassigning exceptions in catch clauses */ "no-ex-assign"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow unnecessary boolean casts */ "no-extra-boolean-cast"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow unnecessary parentheses */ "no-extra-parens"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow unnecessary semicolons */ "no-extra-semi"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow reassigning function declarations */ "no-func-assign"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow function or var declarations in nested blocks */ "no-inner-declarations"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow invalid regular expression strings in RegExp constructors */ "no-invalid-regexp"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow irregular whitespace outside of strings and comments */ "no-irregular-whitespace"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow negating the left operand in in expressions (deprecated) */ "no-negated-in-lhs"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow calling global object properties as functions */ "no-obj-calls"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow calling some Object.prototype methods directly on objects */ "no-prototype-builtins"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow multiple spaces in regular expressions */ "no-regex-spaces"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow sparse arrays */ "no-sparse-arrays"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow template literal placeholder syntax in regular strings */ "no-template-curly-in-string"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow confusing multiline expressions */ "no-unexpected-multiline"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow unreachable code after return, throw, continue, and break statements */ "no-unreachable"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow control flow statements in finally blocks */ "no-unsafe-finally"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow negating the left operand of relational operators */ "no-unsafe-negation"?: number | ("off" | "warn" | "error") | unknown[]; /** * Require calls to isNaN() when checking for NaN */ "use-isnan"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce valid JSDoc comments */ "valid-jsdoc"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce comparing typeof expressions against valid strings */ "valid-typeof"?: number | ("off" | "warn" | "error") | unknown[]; [k: string]: unknown; } /** * This interface was referenced by `JSONSchemaForESLintConfigurationFiles`'s JSON-Schema * via the `definition` "bestPractices". */ export interface BestPractices { /** * Enforce getter and setter pairs in objects */ "accessor-pairs"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce return statements in callbacks of array methods */ "array-callback-return"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce the use of variables within the scope they are defined */ "block-scoped-var"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce that class methods utilize this */ "class-methods-use-this"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce a maximum cyclomatic complexity allowed in a program */ complexity?: number | ("off" | "warn" | "error") | unknown[]; /** * Require return statements to either always or never specify values */ "consistent-return"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce consistent brace style for all control statements */ curly?: number | ("off" | "warn" | "error") | unknown[]; /** * Require default cases in switch statements */ "default-case"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce consistent newlines before and after dots */ "dot-location"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce dot notation whenever possible */ "dot-notation"?: number | ("off" | "warn" | "error") | unknown[]; /** * Require the use of === and !== */ eqeqeq?: number | ("off" | "warn" | "error") | unknown[]; /** * Require for-in loops to include an if statement */ "guard-for-in"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow the use of alert, confirm, and prompt */ "no-alert"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow the use of arguments.caller or arguments.callee */ "no-caller"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow lexical declarations in case clauses */ "no-case-declarations"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow division operators explicitly at the beginning of regular expressions */ "no-div-regex"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow else blocks after return statements in if statements */ "no-else-return"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow empty functions */ "no-empty-function"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow empty destructuring patterns */ "no-empty-pattern"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow null comparisons without type-checking operators */ "no-eq-null"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow the use of eval() */ "no-eval"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow extending native types */ "no-extend-native"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow unnecessary calls to .bind() */ "no-extra-bind"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow unnecessary labels */ "no-extra-label"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow fallthrough of case statements */ "no-fallthrough"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow leading or trailing decimal points in numeric literals */ "no-floating-decimal"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow assignments to native objects or read-only global variables */ "no-global-assign"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow shorthand type conversions */ "no-implicit-coercion"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow var and named function declarations in the global scope */ "no-implicit-globals"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow the use of eval()-like methods */ "no-implied-eval"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow this keywords outside of classes or class-like objects */ "no-invalid-this"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow the use of the __iterator__ property */ "no-iterator"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow labeled statements */ "no-labels"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow unnecessary nested blocks */ "no-lone-blocks"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow function declarations and expressions inside loop statements */ "no-loop-func"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow magic numbers */ "no-magic-numbers"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow multiple spaces */ "no-multi-spaces"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow multiline strings */ "no-multi-str"?: number | ("off" | "warn" | "error") | unknown[]; "no-native-reassign"?: Rule; /** * Disallow new operators outside of assignments or comparisons */ "no-new"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow new operators with the Function object */ "no-new-func"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow new operators with the String, Number, and Boolean objects */ "no-new-wrappers"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow octal literals */ "no-octal"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow octal escape sequences in string literals */ "no-octal-escape"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow reassigning function parameters */ "no-param-reassign"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow the use of the __proto__ property */ "no-proto"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow var redeclaration */ "no-redeclare"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow certain properties on certain objects */ "no-restricted-properties"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow assignment operators in return statements */ "no-return-assign"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow unnecessary return await */ "no-return-await"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow javascript: urls */ "no-script-url"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow assignments where both sides are exactly the same */ "no-self-assign"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow comparisons where both sides are exactly the same */ "no-self-compare"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow comma operators */ "no-sequences"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow throwing literals as exceptions */ "no-throw-literal"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow unmodified loop conditions */ "no-unmodified-loop-condition"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow unused expressions */ "no-unused-expressions"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow unused labels */ "no-unused-labels"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow unnecessary calls to .call() and .apply() */ "no-useless-call"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow unnecessary concatenation of literals or template literals */ "no-useless-concat"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow unnecessary escape characters */ "no-useless-escape"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow redundant return statements */ "no-useless-return"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow void operators */ "no-void"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow specified warning terms in comments */ "no-warning-comments"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow with statements */ "no-with"?: number | ("off" | "warn" | "error") | unknown[]; /** * Require using Error objects as Promise rejection reasons */ "prefer-promise-reject-errors"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce the consistent use of the radix argument when using parseInt() */ radix?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow async functions which have no await expression */ "require-await"?: number | ("off" | "warn" | "error") | unknown[]; /** * Require var declarations be placed at the top of their containing scope */ "vars-on-top"?: number | ("off" | "warn" | "error") | unknown[]; /** * Require parentheses around immediate function invocations */ "wrap-iife"?: number | ("off" | "warn" | "error") | unknown[]; /** * Require or Disallow "Yoda" conditions */ yoda?: number | ("off" | "warn" | "error") | unknown[]; [k: string]: unknown; } /** * This interface was referenced by `JSONSchemaForESLintConfigurationFiles`'s JSON-Schema * via the `definition` "strictMode". */ export interface StrictMode { /** * require or disallow strict mode directives */ strict?: number | ("off" | "warn" | "error") | unknown[]; [k: string]: unknown; } /** * This interface was referenced by `JSONSchemaForESLintConfigurationFiles`'s JSON-Schema * via the `definition` "variables". */ export interface Variables { /** * Require or disallow initialization in var declarations */ "init-declarations"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow catch clause parameters from shadowing variables in the outer scope */ "no-catch-shadow"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow deleting variables */ "no-delete-var"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow labels that share a name with a variable */ "no-label-var"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow specified global variables */ "no-restricted-globals"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow var declarations from shadowing variables in the outer scope */ "no-shadow"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow identifiers from shadowing restricted names */ "no-shadow-restricted-names"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow the use of undeclared variables unless mentioned in /*global * / comments */ "no-undef"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow the use of undefined as an identifier */ "no-undefined"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow initializing variables to undefined */ "no-undef-init"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow unused variables */ "no-unused-vars"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow the use of variables before they are defined */ "no-use-before-define"?: number | ("off" | "warn" | "error") | unknown[]; [k: string]: unknown; } /** * This interface was referenced by `JSONSchemaForESLintConfigurationFiles`'s JSON-Schema * via the `definition` "nodeAndCommonJs". */ export interface NodeAndCommonJs { /** * Require return statements after callbacks */ "callback-return"?: number | ("off" | "warn" | "error") | unknown[]; /** * Require require() calls to be placed at top-level module scope */ "global-require"?: number | ("off" | "warn" | "error") | unknown[]; /** * Require error handling in callbacks */ "handle-callback-err"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow use of the Buffer() constructor */ "no-buffer-constructor"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow require calls to be mixed with regular var declarations */ "no-mixed-requires"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow new operators with calls to require */ "no-new-require"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow string concatenation with __dirname and __filename */ "no-path-concat"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow the use of process.env */ "no-process-env"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow the use of process.exit() */ "no-process-exit"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow specified modules when loaded by require */ "no-restricted-modules"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow synchronous methods */ "no-sync"?: number | ("off" | "warn" | "error") | unknown[]; [k: string]: unknown; } /** * This interface was referenced by `JSONSchemaForESLintConfigurationFiles`'s JSON-Schema * via the `definition` "stylisticIssues". */ export interface StylisticIssues { /** * Enforce line breaks after opening and before closing array brackets */ "array-bracket-newline"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce consistent spacing inside array brackets */ "array-bracket-spacing"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce line breaks after each array element */ "array-element-newline"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce consistent spacing inside single-line blocks */ "block-spacing"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce consistent brace style for blocks */ "brace-style"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce camelcase naming convention */ camelcase?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce or disallow capitalization of the first letter of a comment */ "capitalized-comments"?: number | ("off" | "warn" | "error") | unknown[]; /** * Require or disallow trailing commas */ "comma-dangle"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce consistent spacing before and after commas */ "comma-spacing"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce consistent comma style */ "comma-style"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce consistent spacing inside computed property brackets */ "computed-property-spacing"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce consistent naming when capturing the current execution context */ "consistent-this"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce at least one newline at the end of files */ "eol-last"?: number | ("off" | "warn" | "error") | unknown[]; /** * Require or disallow spacing between function identifiers and their invocations */ "func-call-spacing"?: number | ("off" | "warn" | "error") | unknown[]; /** * Require function names to match the name of the variable or property to which they are assigned */ "func-name-matching"?: number | ("off" | "warn" | "error") | unknown[]; /** * Require or disallow named function expressions */ "func-names"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce the consistent use of either function declarations or expressions */ "func-style"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce line breaks between arguments of a function call */ "function-call-argument-newline"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce consistent line breaks inside function parentheses */ "function-paren-newline"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow specified identifiers */ "id-blacklist"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce minimum and maximum identifier lengths */ "id-length"?: number | ("off" | "warn" | "error") | unknown[]; /** * Require identifiers to match a specified regular expression */ "id-match"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce the location of arrow function bodies */ "implicit-arrow-linebreak"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce consistent indentation */ indent?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce consistent indentation (legacy, deprecated) */ "indent-legacy"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce the consistent use of either double or single quotes in JSX attributes */ "jsx-quotes"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce consistent spacing between keys and values in object literal properties */ "key-spacing"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce consistent spacing before and after keywords */ "keyword-spacing"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce position of line comments */ "line-comment-position"?: number | ("off" | "warn" | "error") | unknown[]; /** * Require or disallow an empty line between class members */ "lines-between-class-members"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce consistent linebreak style */ "linebreak-style"?: number | ("off" | "warn" | "error") | unknown[]; /** * Require empty lines around comments */ "lines-around-comment"?: number | ("off" | "warn" | "error") | unknown[]; /** * Require or disallow newlines around directives */ "lines-around-directive"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce a maximum depth that blocks can be nested */ "max-depth"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce a maximum line length */ "max-len"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce a maximum number of lines per file */ "max-lines"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce a maximum depth that callbacks can be nested */ "max-nested-callbacks"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce a maximum number of parameters in function definitions */ "max-params"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce a maximum number of statements allowed in function blocks */ "max-statements"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce a maximum number of statements allowed per line */ "max-statements-per-line"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce a particular style for multiline comments */ "multiline-comment-style"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce newlines between operands of ternary expressions */ "multiline-ternary"?: number | ("off" | "warn" | "error") | unknown[]; /** * Require constructor function names to begin with a capital letter */ "new-cap"?: number | ("off" | "warn" | "error") | unknown[]; /** * Require or disallow an empty line after var declarations */ "newline-after-var"?: number | ("off" | "warn" | "error") | unknown[]; /** * Require an empty line before return statements */ "newline-before-return"?: number | ("off" | "warn" | "error") | unknown[]; /** * Require a newline after each call in a method chain */ "newline-per-chained-call"?: number | ("off" | "warn" | "error") | unknown[]; /** * Require parentheses when invoking a constructor with no arguments */ "new-parens"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow Array constructors */ "no-array-constructor"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow bitwise operators */ "no-bitwise"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow continue statements */ "no-continue"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow inline comments after code */ "no-inline-comments"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow if statements as the only statement in else blocks */ "no-lonely-if"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow mixed binary operators */ "no-mixed-operators"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow mixed spaces and tabs for indentation */ "no-mixed-spaces-and-tabs"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow use of chained assignment expressions */ "no-multi-assign"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow multiple empty lines */ "no-multiple-empty-lines"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow negated conditions */ "no-negated-condition"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow nested ternary expressions */ "no-nested-ternary"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow Object constructors */ "no-new-object"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow the unary operators ++ and -- */ "no-plusplus"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow specified syntax */ "no-restricted-syntax"?: number | ("off" | "warn" | "error") | unknown[]; "no-spaced-func"?: Rule; /** * Disallow tabs in file */ "no-tabs"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow ternary operators */ "no-ternary"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow trailing whitespace at the end of lines */ "no-trailing-spaces"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow dangling underscores in identifiers */ "no-underscore-dangle"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow ternary operators when simpler alternatives exist */ "no-unneeded-ternary"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow whitespace before properties */ "no-whitespace-before-property"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce the location of single-line statements */ "nonblock-statement-body-position"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce consistent line breaks inside braces */ "object-curly-newline"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce consistent spacing inside braces */ "object-curly-spacing"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce placing object properties on separate lines */ "object-property-newline"?: number | ("off" | "warn" | "error") | unknown[]; "object-shorthand"?: Rule; /** * Enforce variables to be declared either together or separately in functions */ "one-var"?: number | ("off" | "warn" | "error") | unknown[]; /** * Require or disallow newlines around var declarations */ "one-var-declaration-per-line"?: number | ("off" | "warn" | "error") | unknown[]; /** * Require or disallow assignment operator shorthand where possible */ "operator-assignment"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce consistent linebreak style for operators */ "operator-linebreak"?: number | ("off" | "warn" | "error") | unknown[]; /** * Require or disallow padding within blocks */ "padded-blocks"?: number | ("off" | "warn" | "error") | unknown[]; /** * Require or disallow padding lines between statements */ "padding-line-between-statements"?: number | ("off" | "warn" | "error") | unknown[]; /** * Require quotes around object literal property names */ "quote-props"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce the consistent use of either backticks, double, or single quotes */ quotes?: number | ("off" | "warn" | "error") | unknown[]; /** * Require JSDoc comments */ "require-jsdoc"?: number | ("off" | "warn" | "error") | unknown[]; /** * Require or disallow semicolons instead of ASI */ semi?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce consistent spacing before and after semicolons */ "semi-spacing"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce location of semicolons */ "semi-style"?: number | ("off" | "warn" | "error") | unknown[]; /** * Requires object keys to be sorted */ "sort-keys"?: number | ("off" | "warn" | "error") | unknown[]; /** * Require variables within the same declaration block to be sorted */ "sort-vars"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce consistent spacing before blocks */ "space-before-blocks"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce consistent spacing before function definition opening parenthesis */ "space-before-function-paren"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce consistent spacing after the // or /* in a comment */ "spaced-comment"?: number | ("off" | "warn" | "error") | unknown[]; /** * Require spacing around operators */ "space-infix-ops"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce consistent spacing inside parentheses */ "space-in-parens"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce consistent spacing before or after unary operators */ "space-unary-ops"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce spacing around colons of switch statements */ "switch-colon-spacing"?: number | ("off" | "warn" | "error") | unknown[]; /** * Require or disallow spacing between template tags and their literals */ "template-tag-spacing"?: number | ("off" | "warn" | "error") | unknown[]; /** * Require or disallow Unicode byte order mark (BOM) */ "unicode-bom"?: number | ("off" | "warn" | "error") | unknown[]; /** * Require parenthesis around regex literals */ "wrap-regex"?: number | ("off" | "warn" | "error") | unknown[]; [k: string]: unknown; } /** * This interface was referenced by `JSONSchemaForESLintConfigurationFiles`'s JSON-Schema * via the `definition` "ecmaScript6". */ export interface EcmaScript6 { /** * Require braces around arrow function bodies */ "arrow-body-style"?: number | ("off" | "warn" | "error") | unknown[]; /** * Require parentheses around arrow function arguments */ "arrow-parens"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce consistent spacing before and after the arrow in arrow functions */ "arrow-spacing"?: number | ("off" | "warn" | "error") | unknown[]; /** * Require super() calls in constructors */ "constructor-super"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce consistent spacing around * operators in generator functions */ "generator-star-spacing"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow reassigning class members */ "no-class-assign"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow arrow functions where they could be confused with comparisons */ "no-confusing-arrow"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow reassigning const variables */ "no-const-assign"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow duplicate class members */ "no-dupe-class-members"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow duplicate module imports */ "no-duplicate-imports"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow new operators with the Symbol object */ "no-new-symbol"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow specified modules when loaded by import */ "no-restricted-imports"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow this/super before calling super() in constructors */ "no-this-before-super"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow unnecessary computed property keys in object literals */ "no-useless-computed-key"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow unnecessary constructors */ "no-useless-constructor"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow renaming import, export, and destructured assignments to the same name */ "no-useless-rename"?: number | ("off" | "warn" | "error") | unknown[]; /** * Require let or const instead of var */ "no-var"?: number | ("off" | "warn" | "error") | unknown[]; /** * Require or disallow method and property shorthand syntax for object literals */ "object-shorthand"?: number | ("off" | "warn" | "error") | unknown[]; /** * Require arrow functions as callbacks */ "prefer-arrow-callback"?: number | ("off" | "warn" | "error") | unknown[]; /** * Require const declarations for variables that are never reassigned after declared */ "prefer-const"?: number | ("off" | "warn" | "error") | unknown[]; /** * Require destructuring from arrays and/or objects */ "prefer-destructuring"?: number | ("off" | "warn" | "error") | unknown[]; /** * Disallow parseInt() in favor of binary, octal, and hexadecimal literals */ "prefer-numeric-literals"?: number | ("off" | "warn" | "error") | unknown[]; /** * Require Reflect methods where applicable */ "prefer-reflect"?: number | ("off" | "warn" | "error") | unknown[]; /** * Require rest parameters instead of arguments */ "prefer-rest-params"?: number | ("off" | "warn" | "error") | unknown[]; /** * Require spread operators instead of .apply() */ "prefer-spread"?: number | ("off" | "warn" | "error") | unknown[]; /** * Require template literals instead of string concatenation */ "prefer-template"?: number | ("off" | "warn" | "error") | unknown[]; /** * Require generator functions to contain yield */ "require-yield"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce spacing between rest and spread operators and their expressions */ "rest-spread-spacing"?: number | ("off" | "warn" | "error") | unknown[]; /** * Enforce sorted import declarations within modules */ "sort-imports"?: number | ("off" | "warn" | "error") | unknown[]; /** * Require symbol descriptions */ "symbol-description"?: number | ("off" | "warn" | "error") | unknown[]; /** * Require or disallow spacing around embedded expressions of template strings */ "template-curly-spacing"?: number | ("off" | "warn" | "error") | unknown[]; /** * Require or disallow spacing around the * in yield* expressions */ "yield-star-spacing"?: number | ("off" | "warn" | "error") | unknown[]; [k: string]: unknown; } /** * This interface was referenced by `JSONSchemaForESLintConfigurationFiles`'s JSON-Schema * via the `definition` "legacy". */ export interface Legacy { "max-depth"?: Rule; "max-len"?: Rule; "max-params"?: Rule; "max-statements"?: Rule; "no-bitwise"?: Rule; "no-plusplus"?: Rule; [k: string]: unknown; } export interface HttpsJsonSchemastoreOrgPartialEslintPluginsJson { /** * Classes decorated with @Component must have suffix "Component" (or custom) in their name. See more at https://angular.dev/style-guide#style-02-03 * https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/component-class-suffix.md */ "@angular-eslint/component-class-suffix"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { suffixes?: string[]; [k: string]: unknown; } ]; /** * Enforces a maximum number of lines in inline template, styles and animations. See more at https://angular.dev/style-guide#style-05-04 * https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/component-max-inline-declarations.md */ "@angular-eslint/component-max-inline-declarations"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { template?: number; styles?: number; animations?: number; [k: string]: unknown; } ]; /** * Component selectors should follow given naming rules. See more at https://angular.dev/style-guide#style-02-07, https://angular.dev/style-guide#style-05-02 * and https://angular.dev/style-guide#style-05-03. * https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/component-selector.md */ "@angular-eslint/component-selector"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { type?: string | ("element" | "attribute")[]; prefix?: string | unknown[]; style?: "camelCase" | "kebab-case"; [k: string]: unknown; } ]; /** * Ensures consistent usage of `styles`/`styleUrls`/`styleUrl` within Component metadata * https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/consistent-component-styles.md */ "@angular-eslint/consistent-component-styles"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { [k: string]: unknown; } ]; /** * Ensures that classes use contextual decorators in its body * https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/contextual-decorator.md */ "@angular-eslint/contextual-decorator"?: { [k: string]: unknown; }; /** * Ensures that lifecycle methods are used in a correct context * https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/contextual-lifecycle.md */ "@angular-eslint/contextual-lifecycle"?: { [k: string]: unknown; }; /** * Classes decorated with @Directive must have suffix "Directive" (or custom) in their name. See more at https://angular.dev/style-guide#style-02-03 * https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/directive-class-suffix.md */ "@angular-eslint/directive-class-suffix"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { suffixes?: string[]; [k: string]: unknown; } ]; /** * Directive selectors should follow given naming rules. See more at https://angular.dev/style-guide#style-02-06 and https://angular.dev/style-guide#style-02-08. * https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/directive-selector.md */ "@angular-eslint/directive-selector"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { type?: string | ("element" | "attribute")[]; prefix?: string | unknown[]; style?: "camelCase" | "kebab-case"; [k: string]: unknown; } ]; /** * Angular Lifecycle methods should not be async. Angular does not wait for async lifecycle but the code incorrectly suggests it does. * https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/no-async-lifecycle-method.md */ "@angular-eslint/no-async-lifecycle-method"?: { [k: string]: unknown; }; /** * The @Attribute decorator is used to obtain a single value for an attribute. This is a much less common use-case than getting a stream of values (using @Input), so often the @Attribute decorator is mistakenly used when @Input was what was intended. This rule disallows usage of @Attribute decorator altogether in order to prevent these mistakes. * https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/no-attribute-decorator.md */ "@angular-eslint/no-attribute-decorator"?: { [k: string]: unknown; }; /** * Ensures that directives not implement conflicting lifecycle interfaces. * https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/no-conflicting-lifecycle.md */ "@angular-eslint/no-conflicting-lifecycle"?: { [k: string]: unknown; }; /** * Ensures that metadata arrays do not contain duplicate entries. * https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/no-duplicates-in-metadata-arrays.md */ "@angular-eslint/no-duplicates-in-metadata-arrays"?: { [k: string]: unknown; }; /** * Disallows declaring empty lifecycle methods * https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/no-empty-lifecycle-method.md */ "@angular-eslint/no-empty-lifecycle-method"?: { [k: string]: unknown; }; /** * Disallows usage of `forwardRef` references for DI * https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/no-forward-ref.md */ "@angular-eslint/no-forward-ref"?: { [k: string]: unknown; }; /** * Disallows usage of the `host` metadata property. NOTE: This used to be recommended by the Angular Team, but now they recommend the exact opposite: https://github.com/angular/angular/issues/54284 * https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/no-host-metadata-property.md */ "@angular-eslint/no-host-metadata-property"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { allowStatic?: boolean; [k: string]: unknown; } ]; /** * Ensures that input bindings, including aliases, are not named or prefixed by the configured disallowed prefixes * https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/no-input-prefix.md */ "@angular-eslint/no-input-prefix"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { prefixes?: string[]; [k: string]: unknown; } ]; /** * Ensures that input bindings are not aliased * https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/no-input-rename.md */ "@angular-eslint/no-input-rename"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { /** * A list with allowed input names */ allowedNames?: string[]; [k: string]: unknown; } ]; /** * Disallows usage of the `inputs` metadata property. See more at https://angular.dev/style-guide#style-05-12 * https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/no-inputs-metadata-property.md */ "@angular-eslint/no-inputs-metadata-property"?: { [k: string]: unknown; }; /** * Disallows explicit calls to lifecycle methods * https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/no-lifecycle-call.md */ "@angular-eslint/no-lifecycle-call"?: { [k: string]: unknown; }; /** * Ensures that output bindings, including aliases, are not named as standard DOM events * https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/no-output-native.md */ "@angular-eslint/no-output-native"?: { [k: string]: unknown; }; /** * Ensures that output bindings, including aliases, are not named "on", nor prefixed with it. See more at https://angular.dev/style-guide#style-05-16 * https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/no-output-on-prefix.md */ "@angular-eslint/no-output-on-prefix"?: { [k: string]: unknown; }; /** * Ensures that output bindings are not aliased * https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/no-output-rename.md */ "@angular-eslint/no-output-rename"?: { [k: string]: unknown; }; /** * Disallows usage of the `outputs` metadata property. See more at https://angular.dev/style-guide#style-05-12 * https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/no-outputs-metadata-property.md */ "@angular-eslint/no-outputs-metadata-property"?: { [k: string]: unknown; }; /** * Disallows the declaration of impure pipes * https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/no-pipe-impure.md */ "@angular-eslint/no-pipe-impure"?: { [k: string]: unknown; }; /** * Disallows usage of the `queries` metadata property. See more at https://angular.dev/style-guide#style-05-12. * https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/no-queries-metadata-property.md */ "@angular-eslint/no-queries-metadata-property"?: { [k: string]: unknown; }; /** * Enforce consistent prefix for pipes. * https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/pipe-prefix.md */ "@angular-eslint/pipe-prefix"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { prefixes?: string[]; [k: string]: unknown; } ]; /** * Ensures component's `changeDetection` is set to `ChangeDetectionStrategy.OnPush` * https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-on-push-component-change-detection.md */ "@angular-eslint/prefer-on-push-component-change-detection"?: { [k: string]: unknown; }; /** * Ensures component, directive and pipe `standalone` property is set to `true` in the component decorator * https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-standalone.md */ "@angular-eslint/prefer-standalone"?: { [k: string]: unknown; }; /** * Ensures component `standalone` property is set to `true` in the component decorator * https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-standalone-component.md */ "@angular-eslint/prefer-standalone-component"?: { [k: string]: unknown; }; /** * Prefer to declare `@Output` as `readonly` since they are not supposed to be reassigned * https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-output-readonly.md */ "@angular-eslint/prefer-output-readonly"?: { [k: string]: unknown; }; /** * The ./ and ../ prefix is standard syntax for relative URLs; don't depend on Angular's current ability to do without that prefix. See more at https://angular.dev/style-guide#style-05-04 * https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/relative-url-prefix.md */ "@angular-eslint/relative-url-prefix"?: { [k: string]: unknown; }; /** * Ensures that $localize tagged messages contain helpful metadata to aid with translations. * https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/require-localize-metadata.md */ "@angular-eslint/require-localize-metadata"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { requireDescription?: boolean; requireMeaning?: boolean; [k: string]: unknown; } ]; /** * Ensures that lifecycle methods are declared in order of execution * https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/sort-lifecycle-methods.md */ "@angular-eslint/sort-lifecycle-methods"?: { [k: string]: unknown; }; /** * Ensures ASC alphabetical order for `NgModule` metadata arrays for easy visual scanning * https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/sort-ngmodule-metadata-arrays.md */ "@angular-eslint/sort-ngmodule-metadata-arrays"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { /** * A string with a BCP 47 language tag. */ locale?: string; [k: string]: unknown; } ]; /** * Component selector must be declared * https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/use-component-selector.md */ "@angular-eslint/use-component-selector"?: { [k: string]: unknown; }; /** * Disallows using `ViewEncapsulation.None` * https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/use-component-view-encapsulation.md */ "@angular-eslint/use-component-view-encapsulation"?: { [k: string]: unknown; }; /** * Using the `providedIn` property makes `Injectables` tree-shakable * https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/use-injectable-provided-in.md */ "@angular-eslint/use-injectable-provided-in"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { ignoreClassNamePattern?: string; [k: string]: unknown; } ]; /** * Ensures that classes implement lifecycle interfaces corresponding to the declared lifecycle methods. See more at https://angular.dev/style-guide#style-09-01 * https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/use-lifecycle-interface.md */ "@angular-eslint/use-lifecycle-interface"?: { [k: string]: unknown; }; /** * Ensures that `Pipes` implement `PipeTransform` interface * https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/use-pipe-transform-interface.md */ "@angular-eslint/use-pipe-transform-interface"?: { [k: string]: unknown; }; /** * Ensure imports point to a file/module that can be resolved. * https://github.com/import-js/eslint-plugin-import/blob/v2.29.1/docs/rules/no-unresolved.md */ "eslint-plugin-import/no-unresolved"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { commonjs?: boolean; amd?: boolean; esmodule?: boolean; /** * @minItems 1 */ ignore?: [string, ...string[]]; caseSensitive?: boolean; caseSensitiveStrict?: boolean; [k: string]: unknown; } ]; /** * Ensure named imports correspond to a named export in the remote file. * https://github.com/import-js/eslint-plugin-import/blob/v2.29.1/docs/rules/named.md */ "eslint-plugin-import/named"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { commonjs?: boolean; [k: string]: unknown; } ]; /** * Ensure a default export is present, given a default import. * https://github.com/import-js/eslint-plugin-import/blob/v2.29.1/docs/rules/default.md */ "eslint-plugin-import/default"?: { [k: string]: unknown; }; /** * Ensure imported namespaces contain dereferenced properties as they are dereferenced. * https://github.com/import-js/eslint-plugin-import/blob/v2.29.1/docs/rules/namespace.md */ "eslint-plugin-import/namespace"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { /** * If `false`, will report computed (and thus, un-lintable) references to namespace members. */ allowComputed?: boolean; [k: string]: unknown; } ]; /** * Forbid namespace (a.k.a. "wildcard" `*`) imports. * https://github.com/import-js/eslint-plugin-import/blob/v2.29.1/docs/rules/no-namespace.md */ "eslint-plugin-import/no-namespace"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { ignore?: string[]; [k: string]: unknown; } ]; /** * Forbid any invalid exports, i.e. re-export of the same name. * https://github.com/import-js/eslint-plugin-import/blob/v2.29.1/docs/rules/export.md */ "eslint-plugin-import/export"?: { [k: string]: unknown; }; /** * Forbid the use of mutable exports with `var` or `let`. * https://github.com/import-js/eslint-plugin-import/blob/v2.29.1/docs/rules/no-mutable-exports.md */ "eslint-plugin-import/no-mutable-exports"?: { [k: string]: unknown; }; /** * Ensure consistent use of file extension within the import path. * https://github.com/import-js/eslint-plugin-import/blob/v2.29.1/docs/rules/extensions.md */ "eslint-plugin-import/extensions"?: { [k: string]: unknown; }; /** * Enforce which files can be imported in a given folder. * https://github.com/import-js/eslint-plugin-import/blob/v2.29.1/docs/rules/no-restricted-paths.md */ "eslint-plugin-import/no-restricted-paths"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { /** * @minItems 1 */ zones?: [ { target?: string | [string, ...string[]]; from?: string | [string, ...string[]]; except?: string[]; message?: string; }, ...{ target?: string | [string, ...string[]]; from?: string | [string, ...string[]]; except?: string[]; message?: string; }[] ]; basePath?: string; [k: string]: unknown; } ]; /** * Forbid importing the submodules of other modules. * https://github.com/import-js/eslint-plugin-import/blob/v2.29.1/docs/rules/no-internal-modules.md */ "eslint-plugin-import/no-internal-modules"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { [k: string]: unknown; } ]; /** * Prefer named exports to be grouped together in a single export declaration * https://github.com/import-js/eslint-plugin-import/blob/v2.29.1/docs/rules/group-exports.md */ "eslint-plugin-import/group-exports"?: { [k: string]: unknown; }; /** * Forbid importing packages through relative paths. * https://github.com/import-js/eslint-plugin-import/blob/v2.29.1/docs/rules/no-relative-packages.md */ "eslint-plugin-import/no-relative-packages"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { commonjs?: boolean; amd?: boolean; esmodule?: boolean; /** * @minItems 1 */ ignore?: [string, ...string[]]; [k: string]: unknown; } ]; /** * Forbid importing modules from parent directories. * https://github.com/import-js/eslint-plugin-import/blob/v2.29.1/docs/rules/no-relative-parent-imports.md */ "eslint-plugin-import/no-relative-parent-imports"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { commonjs?: boolean; amd?: boolean; esmodule?: boolean; /** * @minItems 1 */ ignore?: [string, ...string[]]; [k: string]: unknown; } ]; /** * Enforce or ban the use of inline type-only markers for named imports. * https://github.com/import-js/eslint-plugin-import/blob/v2.29.1/docs/rules/consistent-type-specifier-style.md */ "eslint-plugin-import/consistent-type-specifier-style"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { [k: string]: unknown; } ]; /** * Forbid a module from importing itself. * https://github.com/import-js/eslint-plugin-import/blob/v2.29.1/docs/rules/no-self-import.md */ "eslint-plugin-import/no-self-import"?: { [k: string]: unknown; }; /** * Forbid a module from importing a module with a dependency path back to itself. * https://github.com/import-js/eslint-plugin-import/blob/v2.29.1/docs/rules/no-cycle.md */ "eslint-plugin-import/no-cycle"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { commonjs?: boolean; amd?: boolean; esmodule?: boolean; /** * @minItems 1 */ ignore?: [string, ...string[]]; maxDepth?: number | "∞"; /** * ignore external modules */ ignoreExternal?: boolean; /** * Allow cyclic dependency if there is at least one dynamic import in the chain */ allowUnsafeDynamicCyclicDependency?: boolean; [k: string]: unknown; } ]; /** * Forbid named default exports. * https://github.com/import-js/eslint-plugin-import/blob/v2.29.1/docs/rules/no-named-default.md */ "eslint-plugin-import/no-named-default"?: { [k: string]: unknown; }; /** * Forbid use of exported name as identifier of default export. * https://github.com/import-js/eslint-plugin-import/blob/v2.29.1/docs/rules/no-named-as-default.md */ "eslint-plugin-import/no-named-as-default"?: { [k: string]: unknown; }; /** * Forbid use of exported name as property of default export. * https://github.com/import-js/eslint-plugin-import/blob/v2.29.1/docs/rules/no-named-as-default-member.md */ "eslint-plugin-import/no-named-as-default-member"?: { [k: string]: unknown; }; /** * Forbid anonymous values as default exports. * https://github.com/import-js/eslint-plugin-import/blob/v2.29.1/docs/rules/no-anonymous-default-export.md */ "eslint-plugin-import/no-anonymous-default-export"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { /** * If `false`, will report default export of an array */ allowArray?: boolean; /** * If `false`, will report default export of an arrow function */ allowArrowFunction?: boolean; /** * If `false`, will report default export of a function call */ allowCallExpression?: boolean; /** * If `false`, will report default export of an anonymous class */ allowAnonymousClass?: boolean; /** * If `false`, will report default export of an anonymous function */ allowAnonymousFunction?: boolean; /** * If `false`, will report default export of a literal */ allowLiteral?: boolean; /** * If `false`, will report default export of an object expression */ allowObject?: boolean; /** * If `false`, will report default export of a class instantiation */ allowNew?: boolean; [k: string]: unknown; } ]; /** * Forbid modules without exports, or exports without matching import in another module. * https://github.com/import-js/eslint-plugin-import/blob/v2.29.1/docs/rules/no-unused-modules.md */ "eslint-plugin-import/no-unused-modules"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { /** * files/paths to be analyzed (only for unused exports) */ src?: string[]; /** * files/paths for which unused exports will not be reported (e.g module entry points) */ ignoreExports?: string[]; /** * report modules without any exports */ missingExports?: boolean; /** * report exports without any usage */ unusedExports?: boolean; [k: string]: unknown; } ]; /** * Forbid CommonJS `require` calls and `module.exports` or `exports.*`. * https://github.com/import-js/eslint-plugin-import/blob/v2.29.1/docs/rules/no-commonjs.md */ "eslint-plugin-import/no-commonjs"?: { [k: string]: unknown; }; /** * Forbid AMD `require` and `define` calls. * https://github.com/import-js/eslint-plugin-import/blob/v2.29.1/docs/rules/no-amd.md */ "eslint-plugin-import/no-amd"?: { [k: string]: unknown; }; /** * Forbid repeated import of the same module in multiple places. * https://github.com/import-js/eslint-plugin-import/blob/v2.29.1/docs/rules/no-duplicates.md */ "eslint-plugin-import/no-duplicates"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { considerQueryString?: boolean; "prefer-inline"?: boolean; [k: string]: unknown; } ]; /** * Ensure all imports appear before other statements. * https://github.com/import-js/eslint-plugin-import/blob/v2.29.1/docs/rules/first.md */ "eslint-plugin-import/first"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { [k: string]: unknown; } ]; /** * Enforce the maximum number of dependencies a module can have. * https://github.com/import-js/eslint-plugin-import/blob/v2.29.1/docs/rules/max-dependencies.md */ "eslint-plugin-import/max-dependencies"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { max?: number; ignoreTypeImports?: boolean; [k: string]: unknown; } ]; /** * Forbid the use of extraneous packages. * https://github.com/import-js/eslint-plugin-import/blob/v2.29.1/docs/rules/no-extraneous-dependencies.md */ "eslint-plugin-import/no-extraneous-dependencies"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { devDependencies?: boolean | unknown[]; optionalDependencies?: boolean | unknown[]; peerDependencies?: boolean | unknown[]; bundledDependencies?: boolean | unknown[]; packageDir?: string | unknown[]; includeInternal?: boolean; includeTypes?: boolean; [k: string]: unknown; } ]; /** * Forbid import of modules using absolute paths. * https://github.com/import-js/eslint-plugin-import/blob/v2.29.1/docs/rules/no-absolute-path.md */ "eslint-plugin-import/no-absolute-path"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { commonjs?: boolean; amd?: boolean; esmodule?: boolean; /** * @minItems 1 */ ignore?: [string, ...string[]]; [k: string]: unknown; } ]; /** * Forbid Node.js builtin modules. * https://github.com/import-js/eslint-plugin-import/blob/v2.29.1/docs/rules/no-nodejs-modules.md */ "eslint-plugin-import/no-nodejs-modules"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { allow?: string[]; [k: string]: unknown; } ]; /** * Forbid webpack loader syntax in imports. * https://github.com/import-js/eslint-plugin-import/blob/v2.29.1/docs/rules/no-webpack-loader-syntax.md */ "eslint-plugin-import/no-webpack-loader-syntax"?: { [k: string]: unknown; }; /** * Enforce a convention in module import order. * https://github.com/import-js/eslint-plugin-import/blob/v2.29.1/docs/rules/order.md */ "eslint-plugin-import/order"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { groups?: unknown[]; pathGroupsExcludedImportTypes?: unknown[]; distinctGroup?: boolean; pathGroups?: { pattern: string; patternOptions?: { [k: string]: unknown; }; group: "builtin" | "external" | "internal" | "unknown" | "parent" | "sibling" | "index" | "object" | "type"; position?: "after" | "before"; }[]; "newlines-between"?: "ignore" | "always" | "always-and-inside-groups" | "never"; alphabetize?: { caseInsensitive?: boolean; order?: "ignore" | "asc" | "desc"; orderImportKind?: "ignore" | "asc" | "desc"; }; warnOnUnassignedImports?: boolean; [k: string]: unknown; } ]; /** * Enforce a newline after import statements. * https://github.com/import-js/eslint-plugin-import/blob/v2.29.1/docs/rules/newline-after-import.md */ "eslint-plugin-import/newline-after-import"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { count?: number; exactCount?: boolean; considerComments?: boolean; [k: string]: unknown; } ]; /** * Prefer a default export if module exports a single name or multiple names. * https://github.com/import-js/eslint-plugin-import/blob/v2.29.1/docs/rules/prefer-default-export.md */ "eslint-plugin-import/prefer-default-export"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { target?: "single" | "any"; [k: string]: unknown; } ]; /** * Forbid default exports. * https://github.com/import-js/eslint-plugin-import/blob/v2.29.1/docs/rules/no-default-export.md */ "eslint-plugin-import/no-default-export"?: { [k: string]: unknown; }; /** * Forbid named exports. * https://github.com/import-js/eslint-plugin-import/blob/v2.29.1/docs/rules/no-named-export.md */ "eslint-plugin-import/no-named-export"?: { [k: string]: unknown; }; /** * Forbid `require()` calls with expressions. * https://github.com/import-js/eslint-plugin-import/blob/v2.29.1/docs/rules/no-dynamic-require.md */ "eslint-plugin-import/no-dynamic-require"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { esmodule?: boolean; [k: string]: unknown; } ]; /** * Forbid potentially ambiguous parse goal (`script` vs. `module`). * https://github.com/import-js/eslint-plugin-import/blob/v2.29.1/docs/rules/unambiguous.md */ "eslint-plugin-import/unambiguous"?: { [k: string]: unknown; }; /** * Forbid unassigned imports * https://github.com/import-js/eslint-plugin-import/blob/v2.29.1/docs/rules/no-unassigned-import.md */ "eslint-plugin-import/no-unassigned-import"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { devDependencies?: boolean | unknown[]; optionalDependencies?: boolean | unknown[]; peerDependencies?: boolean | unknown[]; allow?: string[]; [k: string]: unknown; } ]; /** * Forbid unnecessary path segments in import and require statements. * https://github.com/import-js/eslint-plugin-import/blob/v2.29.1/docs/rules/no-useless-path-segments.md */ "eslint-plugin-import/no-useless-path-segments"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { commonjs?: boolean; noUselessIndex?: boolean; [k: string]: unknown; } ]; /** * Enforce a leading comment with the webpackChunkName for dynamic imports. * https://github.com/import-js/eslint-plugin-import/blob/v2.29.1/docs/rules/dynamic-import-chunkname.md */ "eslint-plugin-import/dynamic-import-chunkname"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { importFunctions?: string[]; webpackChunknameFormat?: string; [k: string]: unknown; } ]; /** * Forbid import statements with CommonJS module.exports. * */ "eslint-plugin-import/no-import-module-exports"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { exceptions?: unknown[]; [k: string]: unknown; } ]; /** * Forbid empty named import blocks. * https://github.com/import-js/eslint-plugin-import/blob/v2.29.1/docs/rules/no-empty-named-blocks.md */ "eslint-plugin-import/no-empty-named-blocks"?: { [k: string]: unknown; }; /** * Ensure all exports appear after other statements. * https://github.com/import-js/eslint-plugin-import/blob/v2.29.1/docs/rules/exports-last.md */ "eslint-plugin-import/exports-last"?: { [k: string]: unknown; }; /** * Forbid imported names marked with `@deprecated` documentation tag. * https://github.com/import-js/eslint-plugin-import/blob/v2.29.1/docs/rules/no-deprecated.md */ "eslint-plugin-import/no-deprecated"?: { [k: string]: unknown; }; /** * Replaced by `import/first`. * https://github.com/import-js/eslint-plugin-import/blob/7b25c1cb95ee18acc1531002fd343e1e6031f9ed/docs/rules/imports-first.md */ "eslint-plugin-import/imports-first"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { [k: string]: unknown; } ]; /** * Improve regexes by making them shorter, consistent, and safer. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/better-regex.md */ "eslint-plugin-unicorn/better-regex"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { sortCharacterClasses?: boolean; [k: string]: unknown; } ]; /** * Enforce a specific parameter name in catch clauses. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/catch-error-name.md */ "eslint-plugin-unicorn/catch-error-name"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { name?: string; ignore?: unknown[]; [k: string]: unknown; } ]; /** * Use destructured variables over properties. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/consistent-destructuring.md */ "eslint-plugin-unicorn/consistent-destructuring"?: { [k: string]: unknown; }; /** * Prefer consistent types when spreading a ternary in an array literal. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/consistent-empty-array-spread.md */ "eslint-plugin-unicorn/consistent-empty-array-spread"?: { [k: string]: unknown; }; /** * Move function definitions to the highest possible scope. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/consistent-function-scoping.md */ "eslint-plugin-unicorn/consistent-function-scoping"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { checkArrowFunctions?: boolean; [k: string]: unknown; } ]; /** * Enforce correct `Error` subclassing. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/custom-error-definition.md */ "eslint-plugin-unicorn/custom-error-definition"?: { [k: string]: unknown; }; /** * Enforce no spaces between braces. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/empty-brace-spaces.md */ "eslint-plugin-unicorn/empty-brace-spaces"?: { [k: string]: unknown; }; /** * Enforce passing a `message` value when creating a built-in error. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/error-message.md */ "eslint-plugin-unicorn/error-message"?: { [k: string]: unknown; }; /** * Require escape sequences to use uppercase values. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/escape-case.md */ "eslint-plugin-unicorn/escape-case"?: { [k: string]: unknown; }; /** * Add expiration conditions to TODO comments. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/expiring-todo-comments.md */ "eslint-plugin-unicorn/expiring-todo-comments"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { terms?: string[]; ignore?: unknown[]; ignoreDatesOnPullRequests?: boolean; allowWarningComments?: boolean; date?: string; [k: string]: unknown; } ]; /** * Enforce explicitly comparing the `length` or `size` property of a value. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/explicit-length-check.md */ "eslint-plugin-unicorn/explicit-length-check"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { "non-zero"?: "greater-than" | "not-equal"; [k: string]: unknown; } ]; /** * Enforce a case style for filenames. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/filename-case.md */ "eslint-plugin-unicorn/filename-case"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { [k: string]: unknown; } ]; /** * Enforce specific import styles per module. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/import-style.md */ "eslint-plugin-unicorn/import-style"?: { [k: string]: unknown; }; /** * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/new-for-builtins.md */ "eslint-plugin-unicorn/new-for-builtins"?: { [k: string]: unknown; }; /** * Enforce specifying rules to disable in `eslint-disable` comments. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-abusive-eslint-disable.md */ "eslint-plugin-unicorn/no-abusive-eslint-disable"?: { [k: string]: unknown; }; /** * Disallow anonymous functions and classes as the default export. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-anonymous-default-export.md */ "eslint-plugin-unicorn/no-anonymous-default-export"?: { [k: string]: unknown; }; /** * Prevent passing a function reference directly to iterator methods. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-array-callback-reference.md */ "eslint-plugin-unicorn/no-array-callback-reference"?: { [k: string]: unknown; }; /** * Prefer `for…of` over the `forEach` method. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-array-for-each.md */ "eslint-plugin-unicorn/no-array-for-each"?: { [k: string]: unknown; }; /** * Disallow using the `this` argument in array methods. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-array-method-this-argument.md */ "eslint-plugin-unicorn/no-array-method-this-argument"?: { [k: string]: unknown; }; /** * Enforce combining multiple `Array#push()` into one call. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-array-push-push.md */ "eslint-plugin-unicorn/no-array-push-push"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { ignore?: unknown[]; [k: string]: unknown; } ]; /** * Disallow `Array#reduce()` and `Array#reduceRight()`. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-array-reduce.md */ "eslint-plugin-unicorn/no-array-reduce"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { allowSimpleOperations?: boolean; [k: string]: unknown; } ]; /** * Disallow member access from await expression. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-await-expression-member.md */ "eslint-plugin-unicorn/no-await-expression-member"?: { [k: string]: unknown; }; /** * Disallow using `await` in `Promise` method parameters. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-await-in-promise-methods.md */ "eslint-plugin-unicorn/no-await-in-promise-methods"?: { [k: string]: unknown; }; /** * Do not use leading/trailing space between `console.log` parameters. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-console-spaces.md */ "eslint-plugin-unicorn/no-console-spaces"?: { [k: string]: unknown; }; /** * Do not use `document.cookie` directly. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-document-cookie.md */ "eslint-plugin-unicorn/no-document-cookie"?: { [k: string]: unknown; }; /** * Disallow empty files. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-empty-file.md */ "eslint-plugin-unicorn/no-empty-file"?: { [k: string]: unknown; }; /** * Do not use a `for` loop that can be replaced with a `for-of` loop. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-for-loop.md */ "eslint-plugin-unicorn/no-for-loop"?: { [k: string]: unknown; }; /** * Enforce the use of Unicode escapes instead of hexadecimal escapes. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-hex-escape.md */ "eslint-plugin-unicorn/no-hex-escape"?: { [k: string]: unknown; }; /** * Require `Array.isArray()` instead of `instanceof Array`. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-instanceof-array.md */ "eslint-plugin-unicorn/no-instanceof-array"?: { [k: string]: unknown; }; /** * Disallow invalid options in `fetch()` and `new Request()`. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-invalid-fetch-options.md */ "eslint-plugin-unicorn/no-invalid-fetch-options"?: { [k: string]: unknown; }; /** * Prevent calling `EventTarget#removeEventListener()` with the result of an expression. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-invalid-remove-event-listener.md */ "eslint-plugin-unicorn/no-invalid-remove-event-listener"?: { [k: string]: unknown; }; /** * Disallow identifiers starting with `new` or `class`. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-keyword-prefix.md */ "eslint-plugin-unicorn/no-keyword-prefix"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { /** * @minItems 1 * @maxItems 1 */ disallowedPrefixes?: [string]; checkProperties?: boolean; onlyCamelCase?: boolean; [k: string]: unknown; } ]; /** * Disallow `if` statements as the only statement in `if` blocks without `else`. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-lonely-if.md */ "eslint-plugin-unicorn/no-lonely-if"?: { [k: string]: unknown; }; /** * Disallow a magic number as the `depth` argument in `Array#flat(…).` * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-magic-array-flat-depth.md */ "eslint-plugin-unicorn/no-magic-array-flat-depth"?: { [k: string]: unknown; }; /** * Disallow negated conditions. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-negated-condition.md */ "eslint-plugin-unicorn/no-negated-condition"?: { [k: string]: unknown; }; /** * Disallow negated expression in equality check. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-negation-in-equality-check.md */ "eslint-plugin-unicorn/no-negation-in-equality-check"?: { [k: string]: unknown; }; /** * Disallow nested ternary expressions. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-nested-ternary.md */ "eslint-plugin-unicorn/no-nested-ternary"?: { [k: string]: unknown; }; /** * Disallow `new Array()`. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-new-array.md */ "eslint-plugin-unicorn/no-new-array"?: { [k: string]: unknown; }; /** * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-new-buffer.md */ "eslint-plugin-unicorn/no-new-buffer"?: { [k: string]: unknown; }; /** * Disallow the use of the `null` literal. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-null.md */ "eslint-plugin-unicorn/no-null"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { checkStrictEquality?: boolean; [k: string]: unknown; } ]; /** * Disallow the use of objects as default parameters. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-object-as-default-parameter.md */ "eslint-plugin-unicorn/no-object-as-default-parameter"?: { [k: string]: unknown; }; /** * Disallow `process.exit()`. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-process-exit.md */ "eslint-plugin-unicorn/no-process-exit"?: { [k: string]: unknown; }; /** * Disallow passing single-element arrays to `Promise` methods. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-single-promise-in-promise-methods.md */ "eslint-plugin-unicorn/no-single-promise-in-promise-methods"?: { [k: string]: unknown; }; /** * Disallow classes that only have static members. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-static-only-class.md */ "eslint-plugin-unicorn/no-static-only-class"?: { [k: string]: unknown; }; /** * Disallow `then` property. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-thenable.md */ "eslint-plugin-unicorn/no-thenable"?: { [k: string]: unknown; }; /** * Disallow assigning `this` to a variable. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-this-assignment.md */ "eslint-plugin-unicorn/no-this-assignment"?: { [k: string]: unknown; }; /** * Disallow comparing `undefined` using `typeof`. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-typeof-undefined.md */ "eslint-plugin-unicorn/no-typeof-undefined"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { checkGlobalVariables?: boolean; [k: string]: unknown; } ]; /** * Disallow awaiting non-promise values. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-unnecessary-await.md */ "eslint-plugin-unicorn/no-unnecessary-await"?: { [k: string]: unknown; }; /** * Enforce the use of built-in methods instead of unnecessary polyfills. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-unnecessary-polyfills.md */ "eslint-plugin-unicorn/no-unnecessary-polyfills"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { targets?: | string | unknown[] | { [k: string]: unknown; }; [k: string]: unknown; } ]; /** * Disallow unreadable array destructuring. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-unreadable-array-destructuring.md */ "eslint-plugin-unicorn/no-unreadable-array-destructuring"?: { [k: string]: unknown; }; /** * Disallow unreadable IIFEs. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-unreadable-iife.md */ "eslint-plugin-unicorn/no-unreadable-iife"?: { [k: string]: unknown; }; /** * Disallow unused object properties. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-unused-properties.md */ "eslint-plugin-unicorn/no-unused-properties"?: { [k: string]: unknown; }; /** * Disallow useless fallback when spreading in object literals. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-useless-fallback-in-spread.md */ "eslint-plugin-unicorn/no-useless-fallback-in-spread"?: { [k: string]: unknown; }; /** * Disallow useless array length check. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-useless-length-check.md */ "eslint-plugin-unicorn/no-useless-length-check"?: { [k: string]: unknown; }; /** * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-useless-promise-resolve-reject.md */ "eslint-plugin-unicorn/no-useless-promise-resolve-reject"?: { [k: string]: unknown; }; /** * Disallow unnecessary spread. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-useless-spread.md */ "eslint-plugin-unicorn/no-useless-spread"?: { [k: string]: unknown; }; /** * Disallow useless case in switch statements. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-useless-switch-case.md */ "eslint-plugin-unicorn/no-useless-switch-case"?: { [k: string]: unknown; }; /** * Disallow useless `undefined`. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-useless-undefined.md */ "eslint-plugin-unicorn/no-useless-undefined"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { checkArguments?: boolean; checkArrowFunctionBody?: boolean; [k: string]: unknown; } ]; /** * Disallow number literals with zero fractions or dangling dots. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-zero-fractions.md */ "eslint-plugin-unicorn/no-zero-fractions"?: { [k: string]: unknown; }; /** * Enforce proper case for numeric literals. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/number-literal-case.md */ "eslint-plugin-unicorn/number-literal-case"?: { [k: string]: unknown; }; /** * Enforce the style of numeric separators by correctly grouping digits. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/numeric-separators-style.md */ "eslint-plugin-unicorn/numeric-separators-style"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { binary?: { onlyIfContainsSeparator?: boolean; minimumDigits?: number; groupLength?: number; }; octal?: { onlyIfContainsSeparator?: boolean; minimumDigits?: number; groupLength?: number; }; hexadecimal?: { onlyIfContainsSeparator?: boolean; minimumDigits?: number; groupLength?: number; }; number?: { onlyIfContainsSeparator?: boolean; minimumDigits?: number; groupLength?: number; }; onlyIfContainsSeparator?: boolean; [k: string]: unknown; } ]; /** * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-add-event-listener.md */ "eslint-plugin-unicorn/prefer-add-event-listener"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { excludedPackages?: string[]; [k: string]: unknown; } ]; /** * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-array-find.md */ "eslint-plugin-unicorn/prefer-array-find"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { checkFromLast?: boolean; [k: string]: unknown; } ]; /** * Prefer `.flatMap(…)` over `.map(…).flat()`. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-array-flat-map.md */ "eslint-plugin-unicorn/prefer-array-flat-map"?: { [k: string]: unknown; }; /** * Prefer `Array#flat()` over legacy techniques to flatten arrays. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-array-flat.md */ "eslint-plugin-unicorn/prefer-array-flat"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { functions?: unknown[]; [k: string]: unknown; } ]; /** * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-array-index-of.md */ "eslint-plugin-unicorn/prefer-array-index-of"?: { [k: string]: unknown; }; /** * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-array-some.md */ "eslint-plugin-unicorn/prefer-array-some"?: { [k: string]: unknown; }; /** * Prefer `.at()` method for index access and `String#charAt()`. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-at.md */ "eslint-plugin-unicorn/prefer-at"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { getLastElementFunctions?: unknown[]; checkAllIndexAccess?: boolean; [k: string]: unknown; } ]; /** * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-blob-reading-methods.md */ "eslint-plugin-unicorn/prefer-blob-reading-methods"?: { [k: string]: unknown; }; /** * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-code-point.md */ "eslint-plugin-unicorn/prefer-code-point"?: { [k: string]: unknown; }; /** * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-date-now.md */ "eslint-plugin-unicorn/prefer-date-now"?: { [k: string]: unknown; }; /** * Prefer default parameters over reassignment. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-default-parameters.md */ "eslint-plugin-unicorn/prefer-default-parameters"?: { [k: string]: unknown; }; /** * Prefer `Node#append()` over `Node#appendChild()`. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-dom-node-append.md */ "eslint-plugin-unicorn/prefer-dom-node-append"?: { [k: string]: unknown; }; /** * Prefer using `.dataset` on DOM elements over calling attribute methods. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-dom-node-dataset.md */ "eslint-plugin-unicorn/prefer-dom-node-dataset"?: { [k: string]: unknown; }; /** * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-dom-node-remove.md */ "eslint-plugin-unicorn/prefer-dom-node-remove"?: { [k: string]: unknown; }; /** * Prefer `.textContent` over `.innerText`. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-dom-node-text-content.md */ "eslint-plugin-unicorn/prefer-dom-node-text-content"?: { [k: string]: unknown; }; /** * Prefer `EventTarget` over `EventEmitter`. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-event-target.md */ "eslint-plugin-unicorn/prefer-event-target"?: { [k: string]: unknown; }; /** * Prefer `export…from` when re-exporting. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-export-from.md */ "eslint-plugin-unicorn/prefer-export-from"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { ignoreUsedVariables?: boolean; [k: string]: unknown; } ]; /** * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-includes.md */ "eslint-plugin-unicorn/prefer-includes"?: { [k: string]: unknown; }; /** * Prefer reading a JSON file as a buffer. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-json-parse-buffer.md */ "eslint-plugin-unicorn/prefer-json-parse-buffer"?: { [k: string]: unknown; }; /** * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-keyboard-event-key.md */ "eslint-plugin-unicorn/prefer-keyboard-event-key"?: { [k: string]: unknown; }; /** * Prefer using a logical operator over a ternary. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-logical-operator-over-ternary.md */ "eslint-plugin-unicorn/prefer-logical-operator-over-ternary"?: { [k: string]: unknown; }; /** * Enforce the use of `Math.trunc` instead of bitwise operators. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-math-trunc.md */ "eslint-plugin-unicorn/prefer-math-trunc"?: { [k: string]: unknown; }; /** * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-modern-dom-apis.md */ "eslint-plugin-unicorn/prefer-modern-dom-apis"?: { [k: string]: unknown; }; /** * Prefer modern `Math` APIs over legacy patterns. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-modern-math-apis.md */ "eslint-plugin-unicorn/prefer-modern-math-apis"?: { [k: string]: unknown; }; /** * Prefer JavaScript modules (ESM) over CommonJS. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-module.md */ "eslint-plugin-unicorn/prefer-module"?: { [k: string]: unknown; }; /** * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-native-coercion-functions.md */ "eslint-plugin-unicorn/prefer-native-coercion-functions"?: { [k: string]: unknown; }; /** * Prefer negative index over `.length - index` when possible. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-negative-index.md */ "eslint-plugin-unicorn/prefer-negative-index"?: { [k: string]: unknown; }; /** * Prefer using the `node:` protocol when importing Node.js builtin modules. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-node-protocol.md */ "eslint-plugin-unicorn/prefer-node-protocol"?: { [k: string]: unknown; }; /** * Prefer `Number` static properties over global ones. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-number-properties.md */ "eslint-plugin-unicorn/prefer-number-properties"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { checkInfinity?: boolean; checkNaN?: boolean; [k: string]: unknown; } ]; /** * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-object-from-entries.md */ "eslint-plugin-unicorn/prefer-object-from-entries"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { functions?: unknown[]; [k: string]: unknown; } ]; /** * Prefer omitting the `catch` binding parameter. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-optional-catch-binding.md */ "eslint-plugin-unicorn/prefer-optional-catch-binding"?: { [k: string]: unknown; }; /** * Prefer borrowing methods from the prototype instead of the instance. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-prototype-methods.md */ "eslint-plugin-unicorn/prefer-prototype-methods"?: { [k: string]: unknown; }; /** * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()`. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-query-selector.md */ "eslint-plugin-unicorn/prefer-query-selector"?: { [k: string]: unknown; }; /** * Prefer `Reflect.apply()` over `Function#apply()`. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-reflect-apply.md */ "eslint-plugin-unicorn/prefer-reflect-apply"?: { [k: string]: unknown; }; /** * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-regexp-test.md */ "eslint-plugin-unicorn/prefer-regexp-test"?: { [k: string]: unknown; }; /** * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-set-has.md */ "eslint-plugin-unicorn/prefer-set-has"?: { [k: string]: unknown; }; /** * Prefer using `Set#size` instead of `Array#length`. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-set-size.md */ "eslint-plugin-unicorn/prefer-set-size"?: { [k: string]: unknown; }; /** * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-spread.md */ "eslint-plugin-unicorn/prefer-spread"?: { [k: string]: unknown; }; /** * Prefer using the `String.raw` tag to avoid escaping `\`. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-string-raw.md */ "eslint-plugin-unicorn/prefer-string-raw"?: { [k: string]: unknown; }; /** * Prefer `String#replaceAll()` over regex searches with the global flag. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-string-replace-all.md */ "eslint-plugin-unicorn/prefer-string-replace-all"?: { [k: string]: unknown; }; /** * Prefer `String#slice()` over `String#substr()` and `String#substring()`. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-string-slice.md */ "eslint-plugin-unicorn/prefer-string-slice"?: { [k: string]: unknown; }; /** * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-string-starts-ends-with.md */ "eslint-plugin-unicorn/prefer-string-starts-ends-with"?: { [k: string]: unknown; }; /** * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-string-trim-start-end.md */ "eslint-plugin-unicorn/prefer-string-trim-start-end"?: { [k: string]: unknown; }; /** * Prefer using `structuredClone` to create a deep clone. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-structured-clone.md */ "eslint-plugin-unicorn/prefer-structured-clone"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { functions?: unknown[]; [k: string]: unknown; } ]; /** * Prefer `switch` over multiple `else-if`. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-switch.md */ "eslint-plugin-unicorn/prefer-switch"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { minimumCases?: number; emptyDefaultCase?: "no-default-comment" | "do-nothing-comment" | "no-default-case"; [k: string]: unknown; } ]; /** * Prefer ternary expressions over simple `if-else` statements. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-ternary.md */ "eslint-plugin-unicorn/prefer-ternary"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { [k: string]: unknown; } ]; /** * Prefer top-level await over top-level promises and async function calls. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-top-level-await.md */ "eslint-plugin-unicorn/prefer-top-level-await"?: { [k: string]: unknown; }; /** * Enforce throwing `TypeError` in type checking conditions. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-type-error.md */ "eslint-plugin-unicorn/prefer-type-error"?: { [k: string]: unknown; }; /** * Prevent abbreviations. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prevent-abbreviations.md */ "eslint-plugin-unicorn/prevent-abbreviations"?: { [k: string]: unknown; }; /** * Enforce consistent relative URL style. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/relative-url-style.md */ "eslint-plugin-unicorn/relative-url-style"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { [k: string]: unknown; } ]; /** * Enforce using the separator argument with `Array#join()`. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/require-array-join-separator.md */ "eslint-plugin-unicorn/require-array-join-separator"?: { [k: string]: unknown; }; /** * Enforce using the digits argument with `Number#toFixed()`. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/require-number-to-fixed-digits-argument.md */ "eslint-plugin-unicorn/require-number-to-fixed-digits-argument"?: { [k: string]: unknown; }; /** * Enforce using the `targetOrigin` argument with `window.postMessage()`. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/require-post-message-target-origin.md */ "eslint-plugin-unicorn/require-post-message-target-origin"?: { [k: string]: unknown; }; /** * Enforce better string content. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/string-content.md */ "eslint-plugin-unicorn/string-content"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { patterns?: { [k: string]: | string | { suggest: string; fix?: boolean; message?: string; }; }; [k: string]: unknown; } ]; /** * Enforce consistent brace style for `case` clauses. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/switch-case-braces.md */ "eslint-plugin-unicorn/switch-case-braces"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { [k: string]: unknown; } ]; /** * Fix whitespace-insensitive template indentation. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/template-indent.md */ "eslint-plugin-unicorn/template-indent"?: | number | ("off" | "warn" | "error") | [ number | ("off" | "warn" | "error"), { indent?: string | number; tags?: string[]; functions?: string[]; selectors?: string[]; comments?: string[]; [k: string]: unknown; } ]; /** * Enforce consistent case for text encoding identifiers. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/text-encoding-identifier-case.md */ "eslint-plugin-unicorn/text-encoding-identifier-case"?: { [k: string]: unknown; }; /** * Require `new` when creating an error. * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/throw-new-error.md */ "eslint-plugin-unicorn/throw-new-error"?: { [k: string]: unknown; }; /** * * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#import-index */ "eslint-plugin-unicorn/import-index"?: { [k: string]: unknown; }; /** * * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#no-array-instanceof */ "eslint-plugin-unicorn/no-array-instanceof"?: { [k: string]: unknown; }; /** * * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#no-fn-reference-in-iterator */ "eslint-plugin-unicorn/no-fn-reference-in-iterator"?: { [k: string]: unknown; }; /** * * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#no-reduce */ "eslint-plugin-unicorn/no-reduce"?: { [k: string]: unknown; }; /** * * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#no-unsafe-regex */ "eslint-plugin-unicorn/no-unsafe-regex"?: { [k: string]: unknown; }; /** * * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-dataset */ "eslint-plugin-unicorn/prefer-dataset"?: { [k: string]: unknown; }; /** * * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-event-key */ "eslint-plugin-unicorn/prefer-event-key"?: { [k: string]: unknown; }; /** * * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-exponentiation-operator */ "eslint-plugin-unicorn/prefer-exponentiation-operator"?: { [k: string]: unknown; }; /** * * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-flat-map */ "eslint-plugin-unicorn/prefer-flat-map"?: { [k: string]: unknown; }; /** * * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-node-append */ "eslint-plugin-unicorn/prefer-node-append"?: { [k: string]: unknown; }; /** * * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-node-remove */ "eslint-plugin-unicorn/prefer-node-remove"?: { [k: string]: unknown; }; /** * * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-object-has-own */ "eslint-plugin-unicorn/prefer-object-has-own"?: { [k: string]: unknown; }; /** * * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-replace-all */ "eslint-plugin-unicorn/prefer-replace-all"?: { [k: string]: unknown; }; /** * * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-starts-ends-with */ "eslint-plugin-unicorn/prefer-starts-ends-with"?: { [k: string]: unknown; }; /** * * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-text-content */ "eslint-plugin-unicorn/prefer-text-content"?: { [k: string]: unknown; }; /** * * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-trim-start-end */ "eslint-plugin-unicorn/prefer-trim-start-end"?: { [k: string]: unknown; }; /** * * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#regex-shorthand */ "eslint-plugin-unicorn/regex-shorthand"?: { [k: string]: unknown; }; /** * Enforce linebreaks after opening and before closing array brackets in `