Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Akronae/eslint-plugin-exception-han…
Browse files Browse the repository at this point in the history
…dling
  • Loading branch information
Akronae committed Aug 2, 2024
2 parents fb6f1c0 + 2dfb604 commit 4d26c7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/get-import-declaration-path.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ function cleanTsConfig(content: string) {

function resolveTSAlias(tsconfigpath: string, to: string, cwd: string) {
const tsconfig = readFileSync(tsconfigpath, "utf-8");
const aliases = JSON.parse(cleanTsConfig(tsconfig)).compilerOptions
.paths as Record<string, string[]>;
const aliases = (JSON.parse(cleanTsConfig(tsconfig)).compilerOptions
.paths ?? {}) as Record<string, string[]>;

let res = Object.entries(aliases)
// sorting by longest - most qualified - alias
Expand Down

0 comments on commit 4d26c7a

Please sign in to comment.