What I mean is that it's not showing up as an error even though this could 
be re-written with the concise syntax.

On Wednesday, May 18, 2022 at 12:35:22 PM UTC-4 [email protected] 
wrote:

> Can you explain what you mean by "does not apply"?
>
> ESLint rules aren't context-aware, so the rule has no idea that you're 
> using Jasmine.
>
> On Tue, May 17, 2022 at 1:35 PM Joseph Carneiro <[email protected]> 
> wrote:
>
>> Hey, everyone,
>>
>> I noticed when using "arrow-body-style": ["error, "as-needed"] that the 
>> rule does not apply to Jasmine it test closures.  For example:
>>
>> it('should be created', () => {
>>   expect(service).toBeTruthy();
>> });
>>
>> Should be an error, but the linter is silent.  Does anyone have any idea 
>> why this is the case?
>>
>> -- 
>> 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/2a0a03bd-193b-4351-ab77-69099efa06f9n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/eslint/2a0a03bd-193b-4351-ab77-69099efa06f9n%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/f0893659-b8f2-47a5-b664-535713b73d17n%40googlegroups.com.

Reply via email to