IanVS / eslint-nibble

Ease into ESLint, by fixing one rule at a time
MIT License
787 stars 29 forks source link

Jest statements `no-undef` eslint error #94

Closed brunolnetto closed 2 years ago

brunolnetto commented 2 years ago

The test framework Jest is very useful for programmers. However, eslint dislikes its statements: it, expect, describe and beforeEach, among others. Maybe I am asking in the wrong place, I ask you to say if so:

Is the a manner to either walk around or fix this "issue"?

ljharb commented 2 years ago

In your eslint config, set env: { jest: true }. It's got nothing to do with eslint-nibble.

brunolnetto commented 2 years ago

Great!