Thanks for the info, makes sense.

On Mon, Apr 25, 2016 at 11:31 AM, Nicholas Zakas <[email protected]
> wrote:

> Hi Owen,
>
> Unfortunately, I don't know a tool that does this automatically. It's a
> bit tricky because you're talking not just about adding the braces, but
> also aligning them based on your brace-style preferences, indentation
> style, and obeying your line ending settings. We're exploring adding more
> autofixes to ESLint, but I don't have a timetable in which something like
> would be conceivable.
>
> -
>
> On Fri, Apr 22, 2016 at 9:18 PM, Owen Densmore <[email protected]>
> wrote:
>
>> Our group is narrowing down on eslint, the Standard JS rule set.
>>
>> Unfortunately, I developed 2K lines of code using legal JS w.r.t. braces:
>> i.e. don't use braces with one-line statements in for, while, if, etc.
>> It'll take me several hours to convert to braces everywhere if we decide on
>> that.
>>
>> OTOH, we may simply have that one curly override, but in the mean time,
>> has anyone developed a "fix" that will add (unnecessary) braces so as to
>> conform to JS Standard (and many other) rule sets? The regex from hell, I
>> guess!
>>
>> Thanks! ESLint has saved me so much time tracking down silly bugs that
>> I'll gladly adapt any rule set our group agrees on!
>>
>>    -- Owen
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "ESLint" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
>
> ______________________________
> Nicholas C. Zakas
> @slicknet
>
> Author, Professional JavaScript for Web Developers
> Buy it at Amazon.com:
> http://www.amazon.com/Professional-JavaScript-Developers-Nicholas-Zakas/dp/1118026691/ref=sr_1_3
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "ESLint" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/eslint/twG4FkOkaz0/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"ESLint" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to