1.1.1 โ€ข Published 3 years ago

eslintrc-generator v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

npm Status GitHub issues GitHub forks GitHub stars GitHub pull requests GitHub License

Project Demo Gif

๐Ÿ’ก Features

  1. Uses Airbnb Style Guide
  2. Perfectly compatible with
    • TypeScript
    • JavaScript
    • Prettier
    • React
  3. Ask questions and creates config based on your choice
  4. You have complete control over the configuration
  5. Checks for package.json file and npm init -y if not found
  6. Installs all required packages as dev dependency as per the config
  7. Uses your preferred package manager
  8. Supports CLI arguments

โ›๏ธ Built with

  • Inquirer
  • Listr
  • Execa
  • Yargs

๐Ÿ’ป Command Line Arguments

  • -t, --moduleType: Module type you use js: JavaScript modules (Import/Export), req: CommonJS (require) { choices: "js", "req", "none" }
  • -c, --codeRun: Code will run on array { choices: "browser", "node" }
  • -r, --isReact: Using React in project boolean
  • -l, --language: Language you going to use { choices: "ts", "js" }
  • -p, --isPrettier: Using Prettier for formatting boolean
  • -m, --packageManager: Which package manager to use { choices: "yarn", "npm" }

๐Ÿ Getting Started

Follow all these instructions and learn the best way to take benefits from this package.

๐Ÿ“š Prerequisite

  • Node
  • npm/yarn

๐Ÿงฐ Installation

  1. 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. And I recommend using the global method

  2. Per project installation

    npm i eslintrc-generator
    
                or
    
    yarn add eslintrc-generator
  3. Command to generate RC file

    npx eslintrc-generator
    
             or
    
    generate-eslintrc
    • Generate via CLI arguments

      npx eslintrc-generator -t js -c node -l ts -m yarn -rp
      
               or
      
      generate-eslintrc -t js -c node -l ts -m yarn -rp

๐ŸŽˆ Usage

The sole motive of this package is to improve Developer Experience. 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

๐Ÿ“– 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

๐ŸŽ‰ 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.