Add eslint support for package.json exports (#6639)

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
Janne Savolainen authored and GitHub committed 2022-11-24 08:46:40 -05:00
1 parent 245e132ada
commit 055a13d4a9
3 files changed
+96 -2

No files matched your search

+9
View File
@@ -18,6 +18,15 @@ module.exports = {
react: {
version: packageJson.devDependencies.react || "detect",
},
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"],
},
"import/resolver": {
"typescript": {
"alwaysTryTypes": true,
"project": "./tsconfig.json",
},
},
},
overrides: [
{