-
-
Notifications
You must be signed in to change notification settings - Fork 75
import/no-named-as-default #564
Comments
Thank you for the report. Does |
@mysticatea I think it does, but I haven't digged into their code. |
Thank you for the pointing. But that option doesn't seem related in this. My question isn't the way that the plugin distinguishes the proper parser by file extensions. Does the plugin give this parser the filename to parse the imported file? |
The plugin looks like giving: https://github.com/benmosher/eslint-plugin-import/blob/798eed7e559adab2eac07bf1b3e3518d4b7a4296/utils/parse.js#L31 Hmm. |
Would you provide repo to reproduce it? |
Or... please try to rewrite the overrides:
- files: ["*.ts", "*.tsx"]
parser: "typescript-eslint-parser"
parserOptions:
jsx: true |
@mysticatea 😮 replacing my overrides with your snippet seems to have solved the issue. I don't remember where did I found the other options and how could I miss that they were invalid, but ... thank you very much! |
Related: #225
Follow-up from: #563
What version of TypeScript are you using?
3.1.6
What version of
typescript-eslint-parser
are you using?21.0.1
What code were you trying to parse?
SignUpForm.tsx
InputYourEmail.js
.eslintrc
tsconfig.json
What did you expect to happen?
No error
What happened?
This is the only error I'm getting on 16 files out of 27 tsx files. #563 is also resolved by using typescript-eslint-parser.
The only relationship between the 16 files I could find was that they all import classes from js files.
The text was updated successfully, but these errors were encountered: