Lover's approach to JavaScript and TypeScript.
This config helps maintain consistent codebase across many projects and contains many useful rules that will improve your code quality. It's dedicated for JavaScript & TypeScript projects - both back-end and front-end ones.
npm i -D eslint-config-lover
Add the following entry to your .eslintrc file:
{
"extends": ["lover"]
}
For TypeScript, create tsconfig.eslint.json
file right next to your current tsconfig.json
, that
looks like this:
{
"extends": "./tsconfig.json",
"include": [
"src"
// all directories you would like to include in linting process
]
}