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

32 lines
885 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 accessor properties.",
category: "ES5",
recommended: false,
url: "http://eslint-community.github.io/eslint-plugin-es-x/rules/no-accessor-properties.html",
},
fixable: null,
messages: {
forbidden: "ES5 accessor properties are forbidden.",
},
schema: [],
type: "problem",
},
create(context) {
return {
"Property[kind='get'], Property[kind='set'], MethodDefinition[kind='get'], MethodDefinition[kind='set']"(
node,
) {
context.report({ node, messageId: "forbidden" })
},
}
},
}