eslint-config-td-eslint-config

1.4.2 • Public • Published

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 ツ

Readme

Keywords

none

Package Sidebar

Install

npm i eslint-config-td-eslint-config

Weekly Downloads

12

Version

1.4.2

License

ISC

Unpacked Size

5.84 kB

Total Files

7

Last publish

Collaborators

  • tdtele