eslint-config-sandricoprovo

    3.0.1 • Public • Published

    Eslint & Prettier Configuration

    Eslint is awesome because it helps you write consistent code within a project by alerting you to error/mistakes within your code that you've asked it to warn you about, and it'll also fix those issues if you have the write set up. Along with detecting errors, I also like to use the Prettier plugin which helps style your code consistently. Want to make sure you have spaces around destructured elements and that you always use single or double quotes, Prettier has your back!

    I always found myself having to configure this project by project because I didn't have a single source of truth for my configure, and that why I made this set config project.

    Here's how I have this set up currently:

    Visual Studio Code

    Package.json dev/peer dependencies

    To see what packages I've installed check out my package.json file!

    How to Install

    If you want to install this configuration in your next project, follow the steps below:

    Step 1: Install the dependencies

    npx install-peerdeps --dev eslint-config-sandricoprovo

    Step 2: Extend the eslintrc into your own eslintrc file

    1. Create a .eslintrc file in your project root
    2. Add the following code to your new rc file:
    {
      "extends": [
        "sandricoprovo"
      ]
    }

    If Things Go South

    Here is the command you can run on the command line to uninstall everything

    npm remove eslint-config-sandricoprovo babel-eslint eslint eslint-config-prettier eslint-config-airbnb eslint-plugin-html eslint-plugin-prettier eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react prettier eslint-plugin-react-hooks

    Install

    npm i eslint-config-sandricoprovo

    DownloadsWeekly Downloads

    71

    Version

    3.0.1

    License

    MIT

    Unpacked Size

    20.5 kB

    Total Files

    8

    Last publish

    Collaborators

    • sandricoprovo