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

33 lines
849 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 modules.",
category: "ES2015",
recommended: false,
url:
"http://mysticatea.github.io/eslint-plugin-es/rules/no-modules.html",
},
fixable: null,
messages: {
forbidden: "ES2015 modules are forbidden.",
},
schema: [],
type: "problem",
},
create(context) {
return {
"ExportAllDeclaration, ExportDefaultDeclaration, ExportNamedDeclaration, ImportDeclaration"(
node
) {
context.report({ node, messageId: "forbidden" })
},
}
},
}