/eslint-plugin-fix-disabled-rules

eslint rules with auto-fix disabled

Primary LanguageJavaScript

ESLint currently doesn't make it easy to use existing rules but disable their autofix behaviour.

see:

This can be extremely problematic while using autofix-on-save for certain rules where briefly commenting out a section of code during debugging will trigger a change that becomes an error when code is later uncommented.

Ideally this will be addressed, but in the meantime, this repo will contain forked rules with autofix disabled.

Rules

prefer-const

Problematic example:

let someVar = false; // <- will be changed to `const` on save
// if (someCondition) someVar = true