Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update: add autofix to rule multiline-ternary (#13958)
* Update: Added auto-fix to multiline-ternary I noticed unfixed warnings from this ESLint rule and wanted to auto-fix them. While it may seem like doing `'\n? '` is opinionated, I did have changed to make this take a new option and either put the `?` on the previous line or next line. This is actually unnecessary because `operator-linebreak` handles it for you. * chore: fix linting * chore: review suggestions * Chore: review suggestions refs: https://github.com/eslint/eslint/pull/12982/files#r409035292 * Chore: add a test incluing comments * Chore: review suggestions * Chore: fixer.replaceTextRange() => removeRange() * chore: review suggestions * chore: fix typo Co-authored-by: Kevin Ghadyani <3948069+Sawtaytoes@users.noreply.github.com>
- Loading branch information
1 parent
f6e7e32
commit 0649871
Showing
2 changed files
with
134 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.