editlint
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

editlint

editlint lets you edit your eslint rules in bulk

Requirements

  1. eslint
  2. Using the flat eslint.config.js config file instead of .eslintrc.xx

Sample usage

Convert rules to warnings

import pluginJs from "@eslint/js";
import { editlint } from "editlint";
// ...

export default [
  // ...
  convertToWarnings(pluginJs.configs.recommended),
  // ...
];

Convert only rules that start with 'no'

import { ruleEntryToWarning } from "editlint";

export default [
  // ...
  editlint(pluginJs.configs.recommended, {
    condition: /^no/,
    mutation: ruleEntryToWarning,
  }),
];

Readme

Keywords

Package Sidebar

Install

npm i editlint

Weekly Downloads

5

Version

0.1.3

License

ISC

Unpacked Size

4.97 kB

Total Files

10

Last publish

Collaborators

  • crispyrice