This repository provides a TypeScript template with preconfigured packages for ESLint, Prettier, and Jest. It offers a solid foundation for your project development, ensuring code quality, consistency, and reliable testing.
- TypeScript setup
- ESLint for code linting and style enforcement
- Prettier for code formatting
- Jest for automated testing
To get started with this template, follow these steps:
- Clone the repository:
git clone https://github.com/diyorbekrustamjonov/typescript-template.git
- Install dependencies:
npm install
- Build the project:
npm run build
- Start the application:
npm start
npm run build
: Deletes thebuild
directory, compiles the TypeScript code, and generates type aliases.npm start
: Runs the built application from thebuild
directory.npm run lint:tslint
: Lints the TypeScript code using TSLint and automatically fixes issues.npm run lint:prettier
: Formats the TypeScript code using Prettier.npm test
: Runs the test suites using Jest.npm run coverage
: Generates test coverage reports using Istanbul/NYC.
- Modify and add your TypeScript files in the appropriate directories.
- Customize ESLint rules and configurations in the
.eslintrc.js
file. - Adjust Prettier settings in the
.prettierrc.js
file. - Write and run tests using Jest in the
tests
directory.
Contributions are welcome! If you find any bugs, have suggestions, or would like to contribute new features or enhancements, please refer to the Contributing Guidelines for more details.
If you have any questions or need further assistance, feel free to reach out:
- GitHub: Diyorbek Rustamjonov
- LinkedIn: Diyorbek Rustamjonov
- Email: drustamjonov0919@gmail.com
- Telegram: @Rustamjonov_Diyorbek
This project is licensed under the MIT License. See the LICENSE file for more information.