Ashikul Islam Nayeem

Initialize Project
npm init
npm i express
Install Typescript
npm i -D typescript
Add typescript config file, for that we will use the below given command.
tsc --init
In the tsconfig.json file, remove the comments on the rootDir option and modify it, to set src as root directory for typescript.
"rootDir": "./src"
Similarly, do this for outDir option as well
"outDir": "./dist",
Install Eslint
npm i -D eslint@9.14.0 @eslint/js @types/eslint__js typescript typescript-eslint
Now eslint.config.mjs file in the root of the project directory will be created.
npx eslint --init
At this point you may see that your version of eslint: "^9.14.0" has been changed to eslint: "^9.15.0"
if that happens remove the eslint : npm remove eslint
Then re-install: npm i -D eslint@9.14.0
Install Prettier
npm i -D --exact prettier
Now create .prettierrc and .prettierignore file in the root of your project.
Include basic configurations for prettier in the .prettierrc file.