We have the following config in our tsconfig.ts
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "src",
"paths": {
"@app/*": ["app/*"],
"@pages/*": ["app/pages/*"]
...
},
Then we can use much cleaner imports in our other ts files, something like this:
import {UrlConstants} from '@app/common/constants/url-constants';
Problem comes while linting the project:
Module '@app/common' is not listed as dependency in package.json
Any way to solve it without going back to using ./***/***/
for imports?