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

37 lines
1.0 KiB
Plaintext

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