Skip to content

Commit

Permalink
fix(tsconfig): rectify path resolution in vscode
Browse files Browse the repository at this point in the history
  • Loading branch information
sabertazimi committed Aug 2, 2021
1 parent e788180 commit 2f935c6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
11 changes: 10 additions & 1 deletion jsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,23 @@
"baseUrl": "./",
"paths": {
"@components": ["src/components"],
"@components/*": ["src/components/*"],
"@config": ["src/config"],
"@config/*": ["src/config/*"],
"@hooks": ["src/hooks"],
"@hooks/*": ["src/hooks/*"],
"@images": ["src/images"],
"@images/*": ["src/images/*"],
"@layouts": ["src/layouts"],
"@layouts/*": ["src/layouts/*"],
"@pages": ["src/pages"],
"@pages/*": ["src/pages/*"],
"@styles": ["src/styles"],
"@styles/*": ["src/styles/*"],
"@templates": ["src/templates"],
"@types": ["src/types"]
"@templates/*": ["src/templates/*"],
"@types": ["src/types"],
"@types/*": ["src/types/*"]
},
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
Expand Down
11 changes: 10 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,23 @@
"baseUrl": "./" /* Base directory to resolve non-absolute module names. */,
"paths": {
"@components": ["src/components"],
"@components/*": ["src/components/*"],
"@config": ["src/config"],
"@config/*": ["src/config/*"],
"@hooks": ["src/hooks"],
"@hooks/*": ["src/hooks/*"],
"@images": ["src/images"],
"@images/*": ["src/images/*"],
"@layouts": ["src/layouts"],
"@layouts/*": ["src/layouts/*"],
"@pages": ["src/pages"],
"@pages/*": ["src/pages/*"],
"@styles": ["src/styles"],
"@styles/*": ["src/styles/*"],
"@templates": ["src/templates"],
"@types": ["src/types"]
"@templates/*": ["src/templates/*"],
"@types": ["src/types"],
"@types/*": ["src/types/*"]
} /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */,
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
// "typeRoots": [], /* List of folders to include type definitions from. */
Expand Down

0 comments on commit 2f935c6

Please sign in to comment.