0.1.3 • Published 11 months ago

editlint v0.1.3

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

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,
  }),
];
0.1.3

11 months ago

0.1.2

11 months ago

0.1.1

11 months ago

0.1.0

11 months ago