Skip to content

[Bug]: proper eslint rules are not applied on spec files #3226

@ExFlo

Description

@ExFlo

Package name

eslint-config-otter

Package version

12.2.5

Reproduction steps

otter create my-project (without eslint-config)
add lib my-lib
add eslint-config
add ng lint in the lib and run it once with --fix option
You still have then 2 errors about describe, beforeEach not defined

Current result

.../otter/my-project/libs/my-lib/src/lib/my-lib.component.spec.ts
9:1 error 'describe' is not defined no-undef
13:3 error 'beforeEach' is not defined no-undef
24:3 error 'it' is not defined no-undef
25:5 error 'expect' is not defined no-undef

.../otter/my-project/libs/my-lib/src/lib/my-lib.service.spec.ts
8:1 error 'describe' is not defined no-undef
11:3 error 'beforeEach' is not defined no-undef
16:3 error 'it' is not defined no-undef
17:5 error 'expect' is not defined no-undef

Expected result

No issue with the lint here

Additional comments

The tests are running fine, so I guess this is more a lint config issue but this is to be investigated I guess.
Thx a lot

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions