Closed brandongregoryscott closed 1 year ago
Not sure this is entirely possible without using TS Parser Services to resolve imports, which can be really slow. I'll split this into two rules: #70 default-export-matches-filename
and #71 default-import-matches-module
which provides a simpler way to be more consistent around default import/export naming conventions
Inspired by these
eslint-plugin-import
rules:import/no-named-as-default import/no-anonymous-default-export.
Implement a rule that ensures default imports/exports are named consistently, i.e.
would be transformed to: