Skip to content

Commit 9ebcfc2

Browse files
authored
chore: add type.d.ts import resolver (#493)
### Description Of Changes It's a following task after #490 merged. This fix is for enabling import/extensions lint rule again and not getting any errors even with *.d.ts file extension.
1 parent b01ef97 commit 9ebcfc2

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

.eslintrc.json

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
".js",
2424
".jsx",
2525
".ts",
26-
".tsx"
26+
".tsx",
27+
".d.ts"
2728
]
2829
}
2930
}
@@ -34,18 +35,16 @@
3435
"@typescript-eslint/no-explicit-any": "off",
3536
"@typescript-eslint/no-unused-expressions": "error",
3637
"react/display-name": "off",
37-
"import/extensions": "off",
38-
// TODO(Ahyoung): uncomment below after find a way not to get an error \w type.d.ts
39-
// "import/extensions": [
40-
// "warn",
41-
// "ignorePackages",
42-
// {
43-
// "js": "never",
44-
// "jsx": "never",
45-
// "ts": "never",
46-
// "tsx": "never"
47-
// }
48-
// ],
38+
"import/extensions": [
39+
"error",
40+
"ignorePackages",
41+
{
42+
"js": "never",
43+
"jsx": "never",
44+
"ts": "never",
45+
"tsx": "never"
46+
}
47+
],
4948
// TODO(Ahyoung): fix and remove one by one
5049
"no-floating-decimal": "off",
5150
"no-shadow": "off",

0 commit comments

Comments
 (0)