Sha256: 3b31f1ff469b24bb24b1c763b1034da4d6c75eac9332f5f1efff2f8c855f2d43
Contents?: true
Size: 919 Bytes
Versions: 43
Compression:
Stored size: 919 Bytes
Contents
/** * @fileoverview Rule to flag use of a debugger statement * @author Nicholas C. Zakas */ "use strict"; //------------------------------------------------------------------------------ // Rule Definition //------------------------------------------------------------------------------ module.exports = { meta: { docs: { description: "disallow the use of `debugger`", category: "Possible Errors", recommended: true, url: "https://eslint.org/docs/rules/no-debugger" }, fixable: null, schema: [], messages: { unexpected: "Unexpected 'debugger' statement." } }, create(context) { return { DebuggerStatement(node) { context.report({ node, messageId: "unexpected" }); } }; } };
Version data entries
43 entries across 43 versions & 1 rubygems