UNPKG

textlint-rule-editorconfig

Version:
12 lines (10 loc) 263 B
const scan = require('../scan'); module.exports = (config, args) => { if (config.trim_trailing_whitespace) { scan({ pattern: /[ \t]+$/mg, textWarn: 'Found trailing spaces at line\'s ending', report: () => ({fix: ''}) }, args); } };