You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having an issue where upgrading from 2.18.2 to 2.19.1 has started flagging all TypeScript imports with import/extensions errors, ie.
/Users/andrew/source/####/src/services/####.service.ts
4:35 error Missing file extension "ts" for "./helpers/someFile" import/extensions
These files previously validated correctly with 2.18.2.
One odd thing to note is that I'm using airbnb's preset, which actually sets "import/extensions": ['.js', '.mjs', 'jsx']. Even though .ts and .tsx were missing here, I didn't have this problem until upgrading to 2.19.2. Adding .ts and .tsx to the array has no effect.
This is a lightly-redacted version of my config (generated via eslint --print-config):
Disable import/extensions error for React tsx.
The bug of eslint about import/extensions is fixed, then eslint became
to show import/extensions error.
See:
import-js/eslint-plugin-import#1568 (comment)
I'm having an issue where upgrading from 2.18.2 to 2.19.1 has started flagging all TypeScript imports with
import/extensions
errors, ie.These files previously validated correctly with 2.18.2.
One odd thing to note is that I'm using airbnb's preset, which actually sets
"import/extensions": ['.js', '.mjs', 'jsx']
. Even though.ts
and.tsx
were missing here, I didn't have this problem until upgrading to 2.19.2. Adding.ts
and.tsx
to the array has no effect.This is a lightly-redacted version of my config (generated via
eslint --print-config
):The text was updated successfully, but these errors were encountered: