Skip to content

Commit

Permalink
fix: shortest-import rule failed with .env file
Browse files Browse the repository at this point in the history
  • Loading branch information
SimeonC committed Oct 10, 2023
1 parent 3bcd7cb commit 55ccfdc
Show file tree
Hide file tree
Showing 4 changed files with 327 additions and 198 deletions.
2 changes: 1 addition & 1 deletion packages/eslint-plugin/__tests__/shortestImport.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function buildCodeCase<T extends { name?: string }>({
importType === 'default'
? (importPath: string) => `import { second } from '${importPath}';`
: (importPath: string) => `const second = import('${importPath}');`;
const name = `${rest.name || template(path)}: ${importType}`;
const name = `${rest.name || `\`${template(path)}\``} - ${importType}`;
if (fixedPath) {
return {
...rest,
Expand Down
Empty file.
Loading

0 comments on commit 55ccfdc

Please sign in to comment.