Venn eslint configuration
This is the common eslint configuration for venn repositories.
Usage:
If you are creating a lambda from the lambda template it already has this defined so go have a drink.
Otherwise:
-
To the root of your project add the following files:
.eslintignore
node_modules
coverage
.eslintrc.json
{
"extends": "@venncity/eslint-config"
}
-
Run the following:
npm i --save-dev eslint eslint-config-airbnb-base eslint-plugin-import @venncity/eslint-config
-
To your package.json
file add the following scripts:
"scripts": {
"lint": "node_modules/eslint/bin/eslint.js .",
"lint-fix": "npm run lint -- --fix"
}
Notes:
In the future we will need multiple configs (lambda, node server, react etc). These should probably all be implemented in this repo by using the multiple
configs feature of eslint (see this).