fix(linter): import from .tsx file lint fix now works correctly (#16995)
This commit is contained in:
parent
b20e906f00
commit
881067bbd2
@ -365,7 +365,8 @@ export default createESLintRule<Options, MessageIds>({
|
||||
|
||||
importsToRemap.push({
|
||||
member: importMember,
|
||||
importPath: importPathResolved.replace('.ts', ''),
|
||||
// remove .ts or .tsx from the end of the file path
|
||||
importPath: importPathResolved.replace(/.tsx?$/, ''),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user