-
-
Notifications
You must be signed in to change notification settings - Fork 826
Labels
A-LinterArea: linterArea: linterL-JavaScriptLanguage: JavaScript and super languagesLanguage: JavaScript and super languagesS-Help-wantedStatus: you're familiar with the code base and want to help the projectStatus: you're familiar with the code base and want to help the project
Description
Description
Based on the following eslint-plugin-import rule: https://github.com/import-js/eslint-plugin-import/blob/HEAD/docs/rules/named.md
I think it makes sense to enable such a rule by default, but only let it run on JavaScript files. TypeScript files can be excluded, because they’ll be validated by the TypeScript compiler, and users would just see double diagnostics in their IDE (one from tsc, one from us). If necessary, we can always add an option later.
Inspiration can be taken from the noPrivateImports rule to see how to validate symbol lookups.
Relevant discussion: #5472
siketyan
Metadata
Metadata
Assignees
Labels
A-LinterArea: linterArea: linterL-JavaScriptLanguage: JavaScript and super languagesLanguage: JavaScript and super languagesS-Help-wantedStatus: you're familiar with the code base and want to help the projectStatus: you're familiar with the code base and want to help the project