Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 477 Bytes

extra.md

File metadata and controls

20 lines (16 loc) · 477 Bytes

Advanced features

Reword the warning message of an existing rule you got:

import { reword } from "@denis-sokolov/eslint-plugin";
const rule = reword(
  existingRule,
  "This is a much nicer message explaining what not to do and what to do instead.",
);

Filter some errors that an existing rule produces for you:

import { filter } from "@denis-sokolov/eslint-plugin";
const rule = filter(existingRule, function ({ node, message }) {
  return true;
});