eslint-config-lendo
This package includes the common eslint config used by front end projects at Lendo.
Usage
Install the package
yarn add --dev @lendoab/eslint-config-lendo
Create a .eslintrc
with following content in the root folder of your project.
{
"extends": "@lendoab/eslint-config-lendo"
}
For eslint to work correctly some settings needs to be configured.
You need to specify what globals should be available
{
"env": {
"es6": true,
"node": true,
"jest": true,
"commonjs": true,
"browser": true
}
}
If you use react, then you need to specify what react version to use
{
"settings": {
"react": {
"version": "detect"
}
}
}