1.4.2 • Published 4 years ago

eslint-config-td-eslint-config v1.4.2

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

td-eslint-config npm version

Global eslint rules for easy maitenance across any/all of my projects.

  • should you wish to use my rules this config is shareable

  • this config assumes you already have eslint installed on your project

Usage

  1. Install with NPM
npm install eslint-config-td-eslint-config --save-dev prettier --save-dev
  1. A) or yarn
yarn add eslint-config-td-eslint-config --dev prettier --dev

You will notice here we are installing prettier as well, which is a requirement for these rules.

  1. Add the rules to your projects eslint:
"eslintConfig": {
    "extends": [
      "td-eslint-config"
    ]
  }
  1. I also like to add the lint script for ease of use:
{
  "lint": "./node_modules/.bin/eslint './src/**/*.js'",
}

Depending on your project set up substitute src for the primary directory

4. That's it!

Go write some pretty looking code ツ