Giter Club home page Giter Club logo

dev-trilok / eslintrc-generator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from deeshansharma/eslintrc-generator

0.0 0.0 0.0 488 KB

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

Home Page: https://www.npmjs.com/package/eslintrc-generator

License: MIT License

JavaScript 100.00%

eslintrc-generator's Introduction

Project logo

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

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



Project Demo Gif


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

  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

โ›๏ธ 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

  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. But 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 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

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

eslintrc-generator's People

Contributors

deeshansharma avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.