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

33 lines
856 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 spread elements.",
category: "ES2015",
recommended: false,
url:
"http://mysticatea.github.io/eslint-plugin-es/rules/no-spread-elements.html",
},
fixable: null,
messages: {
forbidden: "ES2015 spread elements are forbidden.",
},
schema: [],
type: "problem",
},
create(context) {
return {
":matches(ArrayExpression, CallExpression, NewExpression) > SpreadElement"(
node
) {
context.report({ node, messageId: "forbidden" })
},
}
},
}