These are settings for ESLint that I use in my projects.
Semi-strict linting rules, to ensure consistency in file structure, formatting and coding style
- In your project folder, run:
npm i --save-dev @lalo3k/eslint-config
- create (or update) a
.eslintrc
file with the following content, this can also be done in theeslintConfig
section of your package.json
{
'extends': [
'@lalo3k/eslint-config'
]
}
-
Copy the .prettierrc file from this repository into your project folder
-
Feel free to override the rules that are not right for your project