UNPKG

@quintaaa/eslint-plugin-starlims

Version:

Eslint plugin to parse and lint starlims form code successfully

25 lines (24 loc) 674 B
module.exports = { meta: { type: 'problem', docs: { description: 'Detect debugger statements and report them as errors, can be autofixed to remove them', recommended: true, }, fixable: 'whitespace', }, create(context) { return { DebuggerStatement(node) { context.report({ node, message: 'Remove debugger statement', fix: function (fixer) { return fixer.remove(node); }, }); }, }; }, };