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

32 lines
876 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 block-scoped variable declarations.",
category: "ES2015",
recommended: false,
url: "http://eslint-community.github.io/eslint-plugin-es-x/rules/no-block-scoped-variables.html",
},
fixable: null,
messages: {
forbidden: "ES2015 block-scoped variables are forbidden.",
},
schema: [],
type: "problem",
},
create(context) {
return {
"VariableDeclaration[kind='const'], VariableDeclaration[kind='let']"(
node,
) {
context.report({ node, messageId: "forbidden" })
},
}
},
}