eslint-config-td-eslint-config
v1.4.2
Published
global eslint config/rules to use across all td open source projects
Downloads
27
Readme
td-eslint-config
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
- Install with NPM
npm install eslint-config-td-eslint-config --save-dev prettier --save-dev
- 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.
- Add the rules to your projects eslint:
"eslintConfig": {
"extends": [
"td-eslint-config"
]
}
- 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 ツ