Sha256: 1fbd68c9b08d1b8b450009e003b48f9d0d141b002e6c4dd8474e6d93235bae88
Contents?: true
Size: 756 Bytes
Versions: 43
Compression:
Stored size: 756 Bytes
Contents
/** * @fileoverview Rule to flag use of with statement * @author Nicholas C. Zakas */ "use strict"; //------------------------------------------------------------------------------ // Rule Definition //------------------------------------------------------------------------------ module.exports = { meta: { docs: { description: "disallow `with` statements", category: "Best Practices", recommended: false, url: "https://eslint.org/docs/rules/no-with" }, schema: [] }, create(context) { return { WithStatement(node) { context.report({ node, message: "Unexpected use of 'with' statement." }); } }; } };
Version data entries
43 entries across 43 versions & 1 rubygems