🐊 Pluggable and configurable JavaScript Linter, code transformer and formatter, drop-in ESLint superpower replacement 💪 with built-in support for js, jsx, typescript, flow, markdown, yaml and json. Write declarative codemods in a simplest possible way 😏
Every time this eslint plugin fixes a rule, it formats the file. This formatting breaks enums:
export const enum ABC {
A,
B,
C,
D,
E
}
const x = typeof 5 === 'number' // example rule to trigger the putout formatter
turns into:
const isNumber = (a): a is number => typeof a === 'number'
export const enum ABC {
A =,
B =,
C =,
D =,
E =
}
const x = isNumber(5) // example rule to trigger the putout formatter
Every time this eslint plugin fixes a rule, it formats the file. This formatting breaks enums:
turns into: