Sha256: 1c8c685158b764d8ee775603c80c2c168e353af85b1e758d02d9565e2e36da2a
Contents?: true
Size: 939 Bytes
Versions: 43
Compression:
Stored size: 939 Bytes
Contents
/** * @author Toru Nagashima <https://github.com/mysticatea> * See LICENSE file in root directory for full license. */ "use strict" module.exports = { meta: { docs: { description: "disallow destructuring.", category: "ES2015", recommended: false, url: "http://mysticatea.github.io/eslint-plugin-es/rules/no-destructuring.html", }, fixable: null, schema: [], messages: { forbidden: "ES2015 destructuring is forbidden.", }, }, create(context) { return { ":matches(:function, AssignmentExpression, VariableDeclarator, :function > :matches(AssignmentPattern, RestElement), ForInStatement, ForOfStatement) > :matches(ArrayPattern, ObjectPattern)"( node ) { context.report({ node, messageId: "forbidden" }) }, } }, }
Version data entries
43 entries across 43 versions & 1 rubygems