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

32 lines
864 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 exponential operators.",
category: "ES2016",
recommended: false,
url: "http://eslint-community.github.io/eslint-plugin-es-x/rules/no-exponential-operators.html",
},
fixable: null,
messages: {
forbidden: "ES2016 exponential operators are forbidden.",
},
schema: [],
type: "problem",
},
create(context) {
return {
"AssignmentExpression[operator='**='], BinaryExpression[operator='**']"(
node,
) {
context.report({ node, messageId: "forbidden" })
},
}
},
}