mirror of
https://github.com/status-im/dappconnect-chat-sdk.git
synced 2025-01-11 14:34:56 +00:00
Support relative imports in packages (#234)
* Update tsconfigs * Add ESLint support for relative paths
This commit is contained in:
parent
3aba1ec88a
commit
c1f9fc9f9f
@ -3,6 +3,8 @@
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"parserOptions": {
|
||||
// TODO: Enable type-aware linting (https://typescript-eslint.io/docs/linting/type-linting)
|
||||
// "tsconfigRootDir": ".",
|
||||
// "project": ["./packages/*/tsconfig.json"],
|
||||
"sourceType": "module",
|
||||
"ecmaFeatures": {
|
||||
"jsx": true
|
||||
@ -70,10 +72,12 @@
|
||||
},
|
||||
"import/resolver": {
|
||||
"node": {
|
||||
"extensions": [".js", ".jsx", ".ts", ".tsx"]
|
||||
"extensions": [".js", ".jsx", ".ts", ".tsx"],
|
||||
"project": ["tsconfig.base.json", "packages/*/tsconfig.json"]
|
||||
},
|
||||
"typescript": {
|
||||
"alwaysTryTypes": true
|
||||
"alwaysTryTypes": true,
|
||||
"project": ["tsconfig.base.json", "packages/*/tsconfig.json"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -3,6 +3,10 @@
|
||||
"include": ["src"],
|
||||
"compilerOptions": {
|
||||
"outDir": "dist",
|
||||
"declarationDir": "dist/types"
|
||||
"declarationDir": "dist/types",
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"~/*": ["./*"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -4,6 +4,10 @@
|
||||
"compilerOptions": {
|
||||
"outDir": "./dist",
|
||||
"declarationDir": "dist/types",
|
||||
"resolveJsonModule": true
|
||||
"resolveJsonModule": true,
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"~/*": ["./*"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user