Skip to content

Commit

Permalink
refactor(tsconfig): Make paths scoped
Browse files Browse the repository at this point in the history
- Restrict amount of paths that can be used
- Add next-sw360 as component path for the project, following
next-* style

Signed-off-by: Helio Chissini de Castro <[email protected]>
  • Loading branch information
heliocastro committed Oct 5, 2023
1 parent 08e8abc commit bc3b67f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,15 @@
"sourceMap": true,
"allowSyntheticDefaultImports": true,
"paths": {
"@/*": ["./src/*"]
"next-sw360": ["./src/components/sw360"],
"@/app/*": ["./src/app/*"],
"@/assets/*": ["./src/assets/*"],
"@/components/*": ["./src/components/*"],
"@/messages": ["./messages"],
"@/object-types/*": ["./src/object-types/*"],
"@/services/*": ["./src/services/*"],
"@/styles/*": ["./src/styles/*"],
"@/utils/*": ["./src/utils/*"]
},
"plugins": [
{
Expand Down

0 comments on commit bc3b67f

Please sign in to comment.