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