management/front/dkha-web-sz-main/node_modules/eslint-plugin-es/lib/rules/no-rest-parameters.js

30 lines
752 B
JavaScript

/**
* @author Toru Nagashima <https://github.com/mysticatea>
* See LICENSE file in root directory for full license.
*/
"use strict"
module.exports = {
meta: {
docs: {
description: "disallow rest parameters.",
category: "ES2015",
recommended: false,
url:
"http://mysticatea.github.io/eslint-plugin-es/rules/no-rest-parameters.html",
},
fixable: null,
schema: [],
messages: {
forbidden: "ES2015 rest parameters are forbidden.",
},
},
create(context) {
return {
":function > RestElement"(node) {
context.report({ node, messageId: "forbidden" })
},
}
},
}