xojs/xo

Replace native/deprecated stylistic rules with `eslint-stylistic`

fregante opened this issue · 2 comments

Context: https://twitter.com/antfu7/status/1701273844433252623

See https://github.com/eslint-stylistic

I see a few options going forward:

  • leave everything as is until eslint completely drops the rules
    • easy, but no progress because those rules have been frozen and incomplete for years
  • switch to eslint-stylistic now
    • probably "easy", but I think that would force the user to update their config overrides
  • enable --prettier by default
    • I don't mind prettier, but I do not like the IDE showing formatting issues as "errors" while I code, they're incredibly distracting when it highlights a whole block of text
  • drop all stylistic rules
    • considering the existing of --prettier, I don’t think this would fly

leave everything as is until eslint completely drops the rules

I plan to go with this.

Yeah for the best. This an be reopened when eslint drops the rules or if eslint-stylistic brings substantial improvements