Sha256: bb99b1c0492fd8f58d31896805b7deddcc2c1d29e89b4d71fd67218b0a4dec2d
Contents?: true
Size: 781 Bytes
Versions: 43
Compression:
Stored size: 781 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 generator function declarations.", category: "ES2015", recommended: false, url: "http://mysticatea.github.io/eslint-plugin-es/rules/no-generators.html", }, fixable: null, schema: [], messages: { forbidden: "ES2015 generator function declarations are forbidden.", }, }, create(context) { return { ":function[generator=true]"(node) { context.report({ node, messageId: "forbidden" }) }, } }, }
Version data entries
43 entries across 43 versions & 1 rubygems