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

27 lines
754 B
Plaintext

"use strict"
module.exports = {
meta: {
docs: {
description: "disallow labelled function declarations.",
category: "legacy",
recommended: false,
url: "http://eslint-community.github.io/eslint-plugin-es-x/rules/no-labelled-function-declarations.html",
},
fixable: null,
messages: {
forbidden:
"Annex B feature the labelled function declarations are forbidden.",
},
schema: [],
type: "problem",
},
create(context) {
return {
"LabeledStatement > FunctionDeclaration.body"(node) {
context.report({ node: node.parent, messageId: "forbidden" })
},
}
},
}