1234567891011121314151617 |
- 'use strict';
- const RuleTester = require('eslint').RuleTester;
- const tester = new RuleTester();
- const ruleName = 'detect-disable-mustache-escape';
- tester.run(ruleName, require(`../rules/${ruleName}`), {
- valid: [{ code: 'escapeMarkup = false' }],
- invalid: [
- {
- code: 'a.escapeMarkup = false',
- errors: [{ message: 'Markup escaping disabled.' }]
- }
- ]
- });
|