@lucasaugustsof/ts-config
v0.2.0
Published
Predefined configs for my TypeScript projects.
Maintainers
Readme
TS Config
This repository provides pre-configured TypeScript settings to simplify the setup of TypeScript and React projects. These configurations have been carefully crafted to optimize development, ensuring best practices and code quality standards from the start.
How to use?
- Before installing the configuration package, ensure that
typescriptis already installed in your project. If it is not, enter the following command in your terminal:
# NPM
npm install typescript@latest -D
# Yarn
yarn add typescript@latest -D
# PNPM
pnpm add typescript@latest -D- After installing typescript, you can run the following command to install the configuration package in your project.
# NPM
npm install @lucasaugustsof/ts-config -D
# Yarn
yarn add @lucasaugustsof/ts-config -D
# PNPM
pnpm add @lucasaugustsof/ts-config -D- Now, to use the configurations, create a
tsconfig.jsonfile at the root of your project and add theextendsproperty to extend the desired configuration.
{
"extends": "@lucasaugustsof/ts-config/base.json"
}{
"extends": "@lucasaugustsof/ts-config/react.json"
}Note: It is important to mention that the React configuration already extends the base configuration by default.
- Your project is now set up with the predefined configurations. If you want to add or override any properties, it’s simple! Here is an example:
{
"extends": "@lucasaugustsof/ts-config/base.json",
"compilerOptions": {
"strictNullChecks": false
}
}License
This project is licensed under the MIT License. See the LICENSE file for more details.
