Files
NapCatQQ/.pnpm-store/v3/files/a4/b7ece0678e985a0ba72bc9c6271b21648728133f9dbabe49f140c0b5710ac296724df433b34792cfb33240c2f7850d269257c93e5f746beaa2bf2497bf1e77
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

37 lines
1016 B
Plaintext

"use strict"
const {
definePrototypeMethodHandler,
} = require("../util/define-prototype-method-handler")
module.exports = {
meta: {
docs: {
description:
"disallow the `NumberFormat.prototype.formatRange` method.",
category: "ES2023-Intl-API",
recommended: false,
url: "http://eslint-community.github.io/eslint-plugin-es-x/rules/no-intl-numberformat-prototype-formatrange.html",
},
fixable: null,
messages: {
forbidden: "ES2023 Intl API '{{name}}' method is forbidden.",
},
schema: [
{
type: "object",
properties: {
aggressive: { type: "boolean" },
},
additionalProperties: false,
},
],
type: "problem",
},
create(context) {
return definePrototypeMethodHandler(context, {
"Intl.NumberFormat": ["formatRange"],
})
},
}