Skip to content

tomdaniels/td-eslint-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 ツ

About

eslint rules | shareable config

Resources

Stars

Watchers

Forks

Packages