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

35 lines
1.0 KiB
Plaintext

/**
* @author Yosuke Ota <https://github.com/ota-meshi>
* See LICENSE file in root directory for full license.
*/
"use strict"
module.exports = {
meta: {
docs: {
description: "disallow arbitrary module namespace names.",
category: "ES2022",
recommended: false,
url: "http://eslint-community.github.io/eslint-plugin-es-x/rules/no-arbitrary-module-namespace-names.html",
},
fixable: null,
messages: {
forbidden: "ES2022 arbitrary module namespace names are forbidden.",
},
schema: [],
type: "problem",
},
create(context) {
return {
"ExportAllDeclaration > Literal.exported, ExportSpecifier > Literal.local, ExportSpecifier > Literal.exported, ImportSpecifier > Literal.imported"(
node,
) {
context.report({
node,
messageId: "forbidden",
})
},
}
},
}