@xionhub/fsd-typescript is a shared tsconfig.json configuration library built with the assumption of being used with @xionhub/fsd-prettier.
This library surprisingly relies on TypeScript and is recommended for use with @xionhub/fsd-prettier.
For more information, please refer to the @xionhub/fsd-prettier document.
You can refer to actual example projects applying this library at @xionhub/fsd-example repository.
@xionhub/fsd-typescript helps set up path allias to quickly and easily comply with feature sliced design and leads to close integration with @xionhub/fsd-prettier.
To install the @xionhub/fsd-typescript in your project, use the following command:
npm install -D @xionhub/fsd-typescript
pnpm install -D @xionhub/fsd-typescript
yarn add -D @xionhub/fsd-typescript
Add the following settings to the path section of tsconfig.json:
"extends": ["@xionhub/fsd-typescript"],
"compilerOptions": {
"baseUrl": ".",
},
baseUrl and extends are very important.
BaseUrl should be based on where your src folder is located (usually ".")
MIT