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

30 lines
815 B
Plaintext

/**
* @author Toru Nagashima <https://github.com/mysticatea>
* See LICENSE file in root directory for full license.
*/
"use strict"
module.exports = {
meta: {
docs: {
description: "disallow `new.target` meta property.",
category: "ES2015",
recommended: false,
url: "http://eslint-community.github.io/eslint-plugin-es-x/rules/no-new-target.html",
},
fixable: null,
messages: {
forbidden: "ES2015 'new.target' meta property is forbidden.",
},
schema: [],
type: "problem",
},
create(context) {
return {
"MetaProperty[meta.name='new'][property.name='target']"(node) {
context.report({ node, messageId: "forbidden" })
},
}
},
}