Skip to content
This repository was archived by the owner on May 12, 2025. It is now read-only.

Commit 8d3d7b7

Browse files
kripodiamturns
authored andcommitted
feat: Apply special import parsing for TypeScript files (#39)
Resolves #36
1 parent db3e1d7 commit 8d3d7b7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/shared.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ module.exports = {
22
plugins: ["@typescript-eslint"],
33
parser: "@typescript-eslint/parser",
44
settings: {
5+
// Apply special parsing for TypeScript files
6+
"import/parsers": {
7+
"@typescript-eslint/parser": [".ts", ".tsx", ".d.ts"],
8+
},
59
// Append 'ts' extensions to Airbnb 'import/resolver' setting
610
"import/resolver": {
711
node: {

0 commit comments

Comments
 (0)