The severity of the notice is controlled in your config, either by manually
entering it or by extending an existing config. ESLint doesn't have any
defaults related to severity level. If you're using a config someone else
created, then you should contact them to understand why this rule is set to
an error.

On Mon, Apr 20, 2020 at 1:34 PM Paul Gureghian <[email protected]>
wrote:

> Thats the whole thing, its flagging it as an error not a warning or info.
> seems like I have config eslint according to my own preferences for JS
> syntax.
> Or are some parts of the eslint config unchangeable for the most basic of
> necessary errors ?
>
> On Monday, April 20, 2020 at 12:03:21 PM UTC-7, Nicholas Zakas wrote:
>>
>> The no-ternary rule only warns you when you use a ternary. It doesn’t
>> know if the ternary will cause an error when you run it.
>>
>> On Fri, Apr 17, 2020 at 6:19 PM Paul Gureghian <[email protected]>
>> wrote:
>>
>>> [image: Magic_Eight_Ball.PNG]
>>> The line of code in question:
>>>
>>> // Create a ternary expression for 'userName'
>>> userName
>>>     ? console.log(`Hello, ${userName}`)
>>>     : console.log("Hello!");
>>>
>>> The script runs properly in spite of this error. Is my ternary correct ?
>>>
>>> --
>>> 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].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/eslint/d8f4ae97-709a-4e3b-bf96-a5e53b3cd91a%40googlegroups.com
>>> <https://groups.google.com/d/msgid/eslint/d8f4ae97-709a-4e3b-bf96-a5e53b3cd91a%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
> 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].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/eslint/46a1ac2f-2e04-46c8-b6ad-0d782e0913e7%40googlegroups.com
> <https://groups.google.com/d/msgid/eslint/46a1ac2f-2e04-46c8-b6ad-0d782e0913e7%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/eslint/CAOkd9hkjMd6mDAFWXzjn1%3DM0KodaZR05s5%3DzpYmLkLGt00B9Ww%40mail.gmail.com.

Reply via email to