set allowSingleLine to true for one-line
->brace-style
conversion
#1226
Labels
area: incorrect converter
Rule converter with incomplete, incorrect, or invalid rule names and/or arguments
good first issue
Good for newcomers; welcome aboard!
status: accepting prs
Please, send in a PR to resolve this! ✨
Overview
TSLint's
one-line
is more narrow in scope than ESLint'sbrace-style
in the sense that ESLint will error on single line blocks by default.Example code that errors under
brace-style
but notone-line
Actual Behavior
A
one-line
TSLint rule generates the following eslint rule:Expected Behavior
Given that
one-line
does not care about single line blocks, I'd expect it to output this ESLint rule:Reproduce
Here is the TSLint rule I was working with:
The text was updated successfully, but these errors were encountered: