export declare const restrictedGlobals: readonly [{ readonly name: "eval"; readonly message: "Avoid using dangerous eval()."; }, { readonly name: "Infinity"; readonly message: "Use 'Number.POSITIVE_INFINITY' instead."; }, { readonly name: "isFinite"; readonly message: "Use Number.isFinite instead to avoid type coercion."; }, { readonly name: "isNaN"; readonly message: "Use Number.isNaN instead to avoid type coercion."; }, { readonly name: "encodeURIComponent"; readonly message: "Use 'stringify' from https://www.npmjs.com/package/query-string instead. (link: https://zenn.dev/megeton/articles/5f1ba5c7e1bfd0)"; }, { readonly name: "decodeURIComponent"; readonly message: "Use 'parse' from https://www.npmjs.com/package/query-string instead. (link: https://zenn.dev/megeton/articles/5f1ba5c7e1bfd0)"; }]; export declare const restrictedGlobalsForBrowser: readonly [{ readonly name: "eval"; readonly message: "Avoid using dangerous eval()."; }, { readonly name: "Infinity"; readonly message: "Use 'Number.POSITIVE_INFINITY' instead."; }, { readonly name: "isFinite"; readonly message: "Use Number.isFinite instead to avoid type coercion."; }, { readonly name: "isNaN"; readonly message: "Use Number.isNaN instead to avoid type coercion."; }, { readonly name: "encodeURIComponent"; readonly message: "Use 'stringify' from https://www.npmjs.com/package/query-string instead. (link: https://zenn.dev/megeton/articles/5f1ba5c7e1bfd0)"; }, { readonly name: "decodeURIComponent"; readonly message: "Use 'parse' from https://www.npmjs.com/package/query-string instead. (link: https://zenn.dev/megeton/articles/5f1ba5c7e1bfd0)"; }, { readonly name: "location"; readonly message: "Use 'window.location' instead."; }, { readonly name: "history"; readonly message: "Use 'window.history' instead."; }, { readonly name: "navigator"; readonly message: "Use 'window.navigator' instead."; }, { readonly name: "length"; readonly message: "Do not use variables with the same name as global variables declared in lib.dom as they are confusing."; }, { readonly name: "event"; readonly message: "Do not use variables with the same name as global variables declared in lib.dom as they are confusing."; }, { readonly name: "name"; readonly message: "Do not use variables with the same name as global variables declared in lib.dom as they are confusing."; }, { readonly name: "parent"; readonly message: "Do not use variables with the same name as global variables declared in lib.dom as they are confusing."; }, { readonly name: "status"; readonly message: "Do not use variables with the same name as global variables declared in lib.dom as they are confusing."; }, { readonly name: "top"; readonly message: "Do not use variables with the same name as global variables declared in lib.dom as they are confusing."; }, { readonly name: "close"; readonly message: "Do not use variables with the same name as global variables declared in lib.dom as they are confusing."; }, { readonly name: "open"; readonly message: "Do not use variables with the same name as global variables declared in lib.dom as they are confusing."; }]; export declare const restrictedSyntax: readonly [{ readonly selector: "BinaryExpression[operator='in']"; readonly message: "use \"Object.hasOwn\" instead."; }, { readonly selector: "MemberExpression[object.object.object.name='Object'][object.object.property.name='prototype'][object.property.name='hasOwnProperty'][property.name='call']"; readonly message: "use \"Object.hasOwn\" instead."; }, { readonly selector: "NewExpression[callee.name='Array']"; readonly message: "use Array.from instead."; }]; /** @link https://github.com/eslint/eslint/blob/main/conf/eslint-all.js */ export declare const eslintRules: { /** * Disable in favor of prettier * * @link https://github.com/eslint/eslint/blob/main/conf/eslint-all.js * @link https://github.com/eslint/eslint/blob/main/conf/eslint-recommended.js */ readonly curly: "off"; readonly 'no-unexpected-multiline': "off"; readonly 'unicode-bom': "off"; /** * Disable in favor of @typescript-eslint * * @link https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/src/configs/eslint-recommended.ts */ readonly 'constructor-super': "off"; readonly 'getter-return': "off"; readonly 'no-const-assign': "off"; readonly 'no-dupe-args': "off"; readonly 'no-dupe-class-members': "off"; readonly 'no-dupe-keys': "off"; readonly 'no-func-assign': "off"; readonly 'no-import-assign': "off"; readonly 'no-obj-calls': "off"; readonly 'no-redeclare': "off"; readonly 'no-setter-return': "off"; readonly 'no-this-before-super': "off"; readonly 'no-undef': "off"; readonly 'no-unreachable': "off"; readonly 'no-unsafe-negation': "off"; readonly 'no-var': "error"; readonly 'prefer-const': 2 | 1; readonly 'prefer-rest-params': "error"; readonly 'prefer-spread': "error"; readonly 'valid-typeof': "off"; readonly 'default-param-last': "off"; readonly 'dot-notation': "off"; readonly 'init-declarations': "off"; readonly 'no-array-constructor': "off"; readonly 'no-duplicate-imports': "off"; readonly 'no-empty-function': "off"; readonly 'no-implied-eval': "off"; readonly 'no-invalid-this': "off"; readonly 'no-loss-of-precision': "off"; readonly 'no-magic-numbers': "off"; readonly 'no-shadow': "off"; readonly 'no-throw-literal': "off"; readonly 'no-unused-expressions': "off"; readonly 'no-unused-vars': "off"; readonly 'no-use-before-define': "off"; readonly 'no-useless-constructor': "off"; readonly 'require-await': "off"; readonly 'class-methods-use-this': "off"; readonly 'prefer-promise-reject-errors': "off"; readonly 'consistent-return': "off"; readonly 'no-loop-func': "error"; readonly 'no-restricted-imports': readonly ["error", { readonly patterns: readonly [{ readonly regex: string; readonly message: "Do not specify index.mjs directly by relative path, but import it by module name (e.g. ./X/index.mjs)."; }]; }]; readonly 'accessor-pairs': 2 | 1; readonly 'array-callback-return': "off"; readonly 'arrow-body-style': readonly ["error", "as-needed"]; readonly 'block-scoped-var': "error"; readonly camelcase: "off"; readonly 'capitalized-comments': "off"; readonly complexity: "off"; readonly 'consistent-this': 2 | 1; readonly 'default-case-last': "error"; readonly 'default-case': "off"; readonly eqeqeq: readonly ["error", "always", { readonly null: "ignore"; }]; readonly 'no-eq-null': "off"; readonly 'for-direction': "error"; readonly 'func-name-matching': 2 | 1; readonly 'func-names': readonly ["error", "always", { readonly generators: "never"; }]; readonly 'func-style': "off"; readonly 'grouped-accessor-pairs': 2 | 1; readonly 'guard-for-in': "error"; readonly 'id-denylist': 2 | 1; readonly 'id-length': "off"; readonly 'id-match': "off"; readonly 'logical-assignment-operators': readonly ["error", "always", { readonly enforceForIfStatements: true; }]; readonly 'max-classes-per-file': "off"; readonly 'max-depth': "off"; readonly 'max-lines-per-function': "off"; readonly 'max-lines': "off"; readonly 'max-nested-callbacks': 2 | 1; readonly 'max-params': "off"; readonly 'max-statements': "off"; readonly 'new-cap': "off"; readonly 'no-async-promise-executor': "error"; readonly 'no-await-in-loop': "error"; readonly 'no-bitwise': "off"; readonly 'no-caller': "error"; readonly 'no-case-declarations': "error"; readonly 'no-class-assign': "error"; readonly 'no-compare-neg-zero': "error"; readonly 'no-cond-assign': 2 | 1; readonly 'no-console': "off"; readonly 'no-constant-binary-expression': readonly ["error", { readonly checkRelationalComparisons: true; }]; readonly 'no-constant-condition': 2 | 1; readonly 'no-constructor-return': "error"; readonly 'no-continue': "off"; readonly 'no-control-regex': "error"; readonly 'no-debugger': "error"; readonly 'no-delete-var': "error"; readonly 'no-div-regex': "error"; readonly 'no-dupe-else-if': "error"; readonly 'no-duplicate-case': "error"; readonly 'no-else-return': "off"; readonly 'no-empty-character-class': "error"; readonly 'no-empty-pattern': 2 | 1; readonly 'no-empty-static-block': "error"; readonly 'no-empty': 2 | 1; readonly 'no-eval': 2 | 1; readonly 'no-ex-assign': "error"; readonly 'no-extend-native': 2 | 1; readonly 'no-extra-bind': "error"; readonly 'no-extra-boolean-cast': readonly ["error", { readonly enforceForInnerExpressions: true; }]; readonly 'no-extra-label': "error"; readonly 'no-fallthrough': 2 | 1; readonly 'no-global-assign': 2 | 1; readonly 'no-implicit-coercion': readonly ["error", { readonly allow: readonly []; readonly boolean: false; readonly disallowTemplateShorthand: true; readonly number: true; readonly string: true; }]; readonly 'no-inline-comments': "off"; readonly 'no-inner-declarations': 2 | 1; readonly 'no-invalid-regexp': 2 | 1; readonly 'no-irregular-whitespace': 2 | 1; readonly 'no-iterator': "error"; readonly 'no-label-var': "error"; readonly 'no-labels': 2 | 1; readonly 'no-lone-blocks': "off"; readonly 'no-lonely-if': "off"; readonly 'no-misleading-character-class': 2 | 1; readonly 'no-multi-assign': 2 | 1; readonly 'no-multi-str': "error"; readonly 'no-negated-condition': "off"; readonly 'no-nested-ternary': "off"; readonly 'no-new-func': "error"; readonly 'no-new-native-nonconstructor': "error"; readonly 'no-new-wrappers': "off"; readonly 'no-new': "error"; readonly 'no-nonoctal-decimal-escape': "error"; readonly 'no-object-constructor': "error"; readonly 'no-octal-escape': "error"; readonly 'no-octal': "error"; readonly 'no-param-reassign': 2 | 1; /** * Warn against using the value of expressions like `++x` or `x++` as they * reduce readability */ readonly 'no-plusplus': readonly ["error", { readonly allowForLoopAfterthoughts: true; }]; readonly 'no-promise-executor-return': 2 | 1; readonly 'no-proto': "error"; readonly 'no-prototype-builtins': "error"; readonly 'no-regex-spaces': "error"; readonly 'no-restricted-exports': readonly ["error", { readonly restrictedNamedExports: readonly ["default"]; }]; readonly 'no-restricted-globals': readonly ["error", { readonly name: "eval"; readonly message: "Avoid using dangerous eval()."; }, { readonly name: "Infinity"; readonly message: "Use 'Number.POSITIVE_INFINITY' instead."; }, { readonly name: "isFinite"; readonly message: "Use Number.isFinite instead to avoid type coercion."; }, { readonly name: "isNaN"; readonly message: "Use Number.isNaN instead to avoid type coercion."; }, { readonly name: "encodeURIComponent"; readonly message: "Use 'stringify' from https://www.npmjs.com/package/query-string instead. (link: https://zenn.dev/megeton/articles/5f1ba5c7e1bfd0)"; }, { readonly name: "decodeURIComponent"; readonly message: "Use 'parse' from https://www.npmjs.com/package/query-string instead. (link: https://zenn.dev/megeton/articles/5f1ba5c7e1bfd0)"; }] & readonly ["error" | { readonly name: "eval"; readonly message: "Avoid using dangerous eval()."; } | { readonly name: "Infinity"; readonly message: "Use 'Number.POSITIVE_INFINITY' instead."; } | { readonly name: "isFinite"; readonly message: "Use Number.isFinite instead to avoid type coercion."; } | { readonly name: "isNaN"; readonly message: "Use Number.isNaN instead to avoid type coercion."; } | { readonly name: "encodeURIComponent"; readonly message: "Use 'stringify' from https://www.npmjs.com/package/query-string instead. (link: https://zenn.dev/megeton/articles/5f1ba5c7e1bfd0)"; } | { readonly name: "decodeURIComponent"; readonly message: "Use 'parse' from https://www.npmjs.com/package/query-string instead. (link: https://zenn.dev/megeton/articles/5f1ba5c7e1bfd0)"; }, ...("error" | { readonly name: "eval"; readonly message: "Avoid using dangerous eval()."; } | { readonly name: "Infinity"; readonly message: "Use 'Number.POSITIVE_INFINITY' instead."; } | { readonly name: "isFinite"; readonly message: "Use Number.isFinite instead to avoid type coercion."; } | { readonly name: "isNaN"; readonly message: "Use Number.isNaN instead to avoid type coercion."; } | { readonly name: "encodeURIComponent"; readonly message: "Use 'stringify' from https://www.npmjs.com/package/query-string instead. (link: https://zenn.dev/megeton/articles/5f1ba5c7e1bfd0)"; } | { readonly name: "decodeURIComponent"; readonly message: "Use 'parse' from https://www.npmjs.com/package/query-string instead. (link: https://zenn.dev/megeton/articles/5f1ba5c7e1bfd0)"; })[]] & Readonly<{ MinLength: readonly [0, ...0[]]; }> & Readonly<{ 'TSTypeForgeInternals--edd2f9ce-7ca5-45b0-9d1a-bd61b9b5d9c3': unknown; }>; readonly 'no-restricted-properties': 2 | 1; /** * Write restricted syntax here that is difficult to achieve with other rules. * Use the following AST checker to determine how to write selectors: * * AST checker: https://typescript-eslint.io/play/#ts=5.9.3&showAST=es&fileType=.ts&code=LAKCA&eslintrc=N4KABGBEBOCuA2BTAzpAXGYBfEWg&tsconfig=N4KABGBEDGD2C2AHAlgGwKYCcDyiAuysAdgM6QBcYoEEkJemy0eAcgK6qoDCAFutAGsylBm3TgwAXxCSgA&tokens=false */ readonly 'no-restricted-syntax': readonly ["error", { readonly selector: "BinaryExpression[operator='in']"; readonly message: "use \"Object.hasOwn\" instead."; }, { readonly selector: "MemberExpression[object.object.object.name='Object'][object.object.property.name='prototype'][object.property.name='hasOwnProperty'][property.name='call']"; readonly message: "use \"Object.hasOwn\" instead."; }, { readonly selector: "NewExpression[callee.name='Array']"; readonly message: "use Array.from instead."; }] & readonly ["error" | { readonly selector: "BinaryExpression[operator='in']"; readonly message: "use \"Object.hasOwn\" instead."; } | { readonly selector: "MemberExpression[object.object.object.name='Object'][object.object.property.name='prototype'][object.property.name='hasOwnProperty'][property.name='call']"; readonly message: "use \"Object.hasOwn\" instead."; } | { readonly selector: "NewExpression[callee.name='Array']"; readonly message: "use Array.from instead."; }, ...("error" | { readonly selector: "BinaryExpression[operator='in']"; readonly message: "use \"Object.hasOwn\" instead."; } | { readonly selector: "MemberExpression[object.object.object.name='Object'][object.object.property.name='prototype'][object.property.name='hasOwnProperty'][property.name='call']"; readonly message: "use \"Object.hasOwn\" instead."; } | { readonly selector: "NewExpression[callee.name='Array']"; readonly message: "use Array.from instead."; })[]] & Readonly<{ MinLength: readonly [0, ...0[]]; }> & Readonly<{ 'TSTypeForgeInternals--edd2f9ce-7ca5-45b0-9d1a-bd61b9b5d9c3': unknown; }>; readonly 'no-return-assign': 2 | 1; readonly 'no-self-assign': 2 | 1; readonly 'no-self-compare': "error"; readonly 'no-sequences': 2 | 1; readonly 'no-shadow-restricted-names': readonly ["error", { readonly reportGlobalThis: true; }]; readonly 'no-sparse-arrays': "error"; readonly 'no-template-curly-in-string': "error"; readonly 'no-ternary': "off"; readonly 'no-undef-init': "off"; readonly 'no-undefined': "off"; readonly 'no-underscore-dangle': "off"; readonly 'no-unmodified-loop-condition': "error"; readonly 'no-unneeded-ternary': readonly ["error", { readonly defaultAssignment: false; }]; readonly 'no-unreachable-loop': 2 | 1; readonly 'no-unsafe-finally': "error"; readonly 'no-unsafe-optional-chaining': readonly ["error", { readonly disallowArithmeticOperators: true; }]; readonly 'no-unused-labels': "error"; readonly 'no-unused-private-class-members': "error"; readonly 'no-useless-backreference': "error"; readonly 'no-useless-call': "error"; readonly 'no-useless-catch': "error"; readonly 'no-useless-computed-key': readonly ["error", { readonly enforceForClassMembers: true; }]; readonly 'no-useless-concat': "error"; readonly 'no-useless-escape': 2 | 1; readonly 'no-useless-rename': 2 | 1; readonly 'no-useless-return': "error"; readonly 'no-void': readonly ["error", { readonly allowAsStatement: false; }]; readonly 'no-warning-comments': "off"; readonly 'no-with': "error"; readonly 'object-shorthand': 2 | 1; readonly 'one-var': "off"; readonly 'operator-assignment': readonly ["error", "always"]; readonly 'prefer-arrow-callback': readonly ["error", { readonly allowNamedFunctions: false; readonly allowUnboundThis: false; }]; readonly 'prefer-destructuring': "off"; readonly 'prefer-exponentiation-operator': "off"; readonly 'prefer-named-capture-group': "off"; readonly 'prefer-numeric-literals': "error"; readonly 'prefer-object-has-own': "error"; readonly 'prefer-object-spread': "error"; readonly 'prefer-regex-literals': readonly ["error", { readonly disallowRedundantWrapping: true; }]; /** * Used to avoid ambiguity with `+` operator. restrict-plus-operands limits * usage to only bigint, number, string types, and prefer-template prohibits * using `+` for string concatenation. Fix: Use template literals or join * string arrays with `join("")`. * * - a + b -> `${a}${b}` * - s_1 + s_2 + ... + s_n -> [s_1, ..., s_n].join("") */ readonly 'prefer-template': "error"; readonly radix: 2 | 1; readonly 'require-atomic-updates': 2 | 1; /** https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Regular_expressions/Character_class */ readonly 'require-unicode-regexp': 2 | 1; readonly 'require-yield': "error"; readonly 'sort-imports': "off"; readonly 'sort-keys': "off"; readonly 'sort-vars': "off"; readonly strict: 2 | 1; readonly 'symbol-description': "off"; readonly 'use-isnan': readonly ["error", { readonly enforceForIndexOf: true; readonly enforceForSwitchCase: true; }]; readonly 'vars-on-top': "error"; readonly yoda: "off"; readonly 'no-useless-assignment': "error"; readonly 'no-unassigned-vars': "error"; readonly 'preserve-caught-error': readonly ["error", { readonly requireCatchParameter: false; }]; readonly 'no-alert': "error"; readonly 'no-implicit-globals': 2 | 1; readonly 'no-script-url': "error"; readonly 'lines-around-comment': 0; readonly 'max-len': 0; readonly 'no-confusing-arrow': 0; readonly 'no-mixed-operators': 0; readonly 'no-tabs': 0; readonly quotes: 0; readonly 'array-bracket-newline': 0; readonly 'array-bracket-spacing': 0; readonly 'array-element-newline': 0; readonly 'arrow-parens': 0; readonly 'arrow-spacing': 0; readonly 'block-spacing': 0; readonly 'brace-style': 0; readonly 'comma-dangle': 0; readonly 'comma-spacing': 0; readonly 'comma-style': 0; readonly 'computed-property-spacing': 0; readonly 'dot-location': 0; readonly 'eol-last': 0; readonly 'func-call-spacing': 0; readonly 'function-call-argument-newline': 0; readonly 'function-paren-newline': 0; readonly 'generator-star-spacing': 0; readonly 'implicit-arrow-linebreak': 0; readonly indent: 0; readonly 'jsx-quotes': 0; readonly 'key-spacing': 0; readonly 'keyword-spacing': 0; readonly 'linebreak-style': 0; readonly 'multiline-ternary': 0; readonly 'newline-per-chained-call': 0; readonly 'no-extra-parens': 0; readonly 'no-extra-semi': 0; readonly 'no-floating-decimal': 0; readonly 'no-mixed-spaces-and-tabs': 0; readonly 'no-multi-spaces': 0; readonly 'no-multiple-empty-lines': 0; readonly 'no-trailing-spaces': 0; readonly 'no-whitespace-before-property': 0; readonly 'nonblock-statement-body-position': 0; readonly 'object-curly-newline': 0; readonly 'object-curly-spacing': 0; readonly 'object-property-newline': 0; readonly 'one-var-declaration-per-line': 0; readonly 'operator-linebreak': 0; readonly 'padded-blocks': 0; readonly 'quote-props': 0; readonly 'rest-spread-spacing': 0; readonly semi: 0; readonly 'semi-spacing': 0; readonly 'semi-style': 0; readonly 'space-before-blocks': 0; readonly 'space-before-function-paren': 0; readonly 'space-in-parens': 0; readonly 'space-infix-ops': 0; readonly 'space-unary-ops': 0; readonly 'switch-colon-spacing': 0; readonly 'template-curly-spacing': 0; readonly 'template-tag-spacing': 0; readonly 'wrap-iife': 0; readonly 'wrap-regex': 0; readonly 'yield-star-spacing': 0; readonly 'new-parens': 0; readonly 'lines-between-class-members': 0; readonly 'padding-line-between-statements': 0; readonly 'no-return-await': 0; readonly 'max-statements-per-line': 0; readonly 'no-new-object': 0; readonly 'spaced-comment': 0; readonly 'callback-return': 0; readonly 'global-require': 0; readonly 'handle-callback-err': 0; readonly 'id-blacklist': 0; readonly 'indent-legacy': 0; readonly 'lines-around-directive': 0; readonly 'newline-after-var': 0; readonly 'newline-before-return': 0; readonly 'no-buffer-constructor': 0; readonly 'no-catch-shadow': 0; readonly 'no-mixed-requires': 0; readonly 'no-native-reassign': 0; readonly 'no-negated-in-lhs': 0; readonly 'no-new-require': 0; readonly 'no-path-concat': 0; readonly 'no-process-env': 0; readonly 'no-process-exit': 0; readonly 'no-restricted-modules': 0; readonly 'no-spaced-func': 0; readonly 'no-sync': 0; readonly 'prefer-reflect': 0; readonly 'no-new-symbol': 0; readonly 'line-comment-position': 0; readonly 'multiline-comment-style': 0; }; //# sourceMappingURL=eslint-rules.d.mts.map