0.3.1 • Published 2 years ago
@flaminc/eslint-config v0.3.1
eslint-config
Sensible configurations for eslint.
How to use
For this config to work you will need to use @rushstack/eslint-patch to simplify plugins loading.
Add the necessary packages to your package.json
file.
{
"devDependencies": {
"@flaminc/eslint-config": "latest",
"@rushstack/eslint-patch": "1.2.0"
}
}
You can then add then fill your .eslintrc.js
file.
require('@rushstack/eslint-patch/modern-module-resolution')
module.exports = {
extends: ['@flaminc/eslint-config:base'],
}
This package offers multiple configurations to compose from.
Available configurations
base
node
typescript
react
jest
Debug
Use npx eslint --print-config file.js
to get the configuration used for a file.