eslintrc-generator
A simple CLI tool to create .eslintrc.json file perfectly compatible with your project and code formatter Prettier
Answer some simple questions and get your RC file as well as all the packages installed
NPM Package
ยท
Report Bug
ยท
Request Feature
Eslintrc-Generator is a simple but time-saving command-line tool that will help you setup your eslint, project, and code formatter with all the configuration you want. You just have to answer some really simple questions and this tool will do all the heavy lifting for you creating the file according to config and installing all the packages
๐ก Features
- Uses Airbnb Style Guide
- Perfectly compatible with
- TypeScript
- JavaScript
- Prettier
- React
- Ask questions and creates config based on your choice
- You have complete control over the configuration
- Checks for package.json file and
npm init -y
if not found - Installs all required packages as dev dependency as per the config
- Uses your preferred package manager
โ๏ธ Built with
- Inquirer
- Listr
- Execa
๐ Getting Started
Follow all these instructions and learn the best way to take benefits from this package.
๐ Prerequisite
- Node
- npm/yarn
๐งฐ Installation
-
Global installation (preferred way)
npm i eslintrc-generator -g
Note: Global installation is not possible with yarn v2 as far as I know, (please guide me if I am wrong). If you are using yarn v1 then use
yarn global add eslintrc-generator
. But I recommend using the global method -
Per project installation
npm i eslintrc-generator or yarn add eslintrc-generator
-
Command to generate RC file
npx generate-eslintrc or generate-eslintrc
๐ Usage
The package is made to save time configuring Eslint and Prettier, with your project (if you have done this before you already know the pain). The tool will ask you certain questions, prepare a config and required packages list based on your answers, install all the packages and create the RC file perfectly compatible with your project as well as Prettier. You just need to focus on your awesome project.
โ๏ธ Authors
- @DeeshanSharma - Idea & Initial Work
๐ Contributing
"In real open source, you have the right to control your own destiny." - Linus Torvalds
Contributions are what makes the open-source community an amazing place. Any contributions you make are greatly appreciated.
๐ณ License
Distributed under the MIT License. See LICENSE
for more information.
๐งฌ Resources
- Airbnb Style Guide
- NPM Docs - Creating Node.js modules
- Twilio Guide - How to build a CLI with Node.js
๐ Acknowledgement
๐ EndNote
Star this project so you don't miss it when you need it and avoid wasting time Googling the stuff and just focus on the build.