@instabuy/package-config
v0.15.1
Published
This package provides a simple way to configure your Typescript application or library. This package comes with Eslint and Prettier configurations and denpendencies so you don't have to worry about it.
Readme
Instabuy Package Config
This package provides a simple way to configure your Typescript application or library. This package comes with Eslint and Prettier configurations and denpendencies so you don't have to worry about it.
Installation
The installation is straightforward and already comes with Eslint and Prettier dependencies, ramaning to you only to install Typescript depedency. Just run the following command to install Prettier and Eslint configurations and dependencies.
npm install @instabuy/package-config --save-devUsage
Use the default Typescript configuration by adding the following line to your
tsconfig.jsonfile.{ "extends": "@instabuy/package-config/tsconfig.json" }Configure Eslint configuration file.
a) If you just want the basic Typescript configuration, add the following line to your
.eslintrc.jsonfile.{ "extends": "@instabuy/eslint-config" }b) If you want to use the React configuration, add the following line to your
.eslintrc.jsonfile.{ "extends": "@instabuy/eslint-config/react" }Configure Prettier configuration file by making the following line your
prettierrc.jsonfile content."@instabuy/prettier-config"Configure your
package.jsonscripts to use the configurations. Like:{ "scripts": { "lint": "eslint src --ext .ts,.js,.tsx", "lint:fix": "yarn lint --fix" } }
