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

41 lines
1.1 KiB
Plaintext

/**
* @author Toru Nagashima <https://github.com/mysticatea>
* See LICENSE file in root directory for full license.
*/
"use strict"
const {
definePrototypeMethodHandler,
} = require("../util/define-prototype-method-handler")
module.exports = {
meta: {
docs: {
description:
"disallow the `Symbol.prototype.description` property.",
category: "ES2019",
recommended: false,
url: "http://eslint-community.github.io/eslint-plugin-es-x/rules/no-symbol-prototype-description.html",
},
fixable: null,
messages: {
forbidden: "ES2019 '{{name}}' property is forbidden.",
},
schema: [
{
type: "object",
properties: {
aggressive: { type: "boolean" },
},
additionalProperties: false,
},
],
type: "problem",
},
create(context) {
return definePrototypeMethodHandler(context, {
Symbol: ["description"],
})
},
}