This is my personal ESLint configuration.
- Install the package:
$ npm install eslint @vboechat/eslint-config -D- Create a
.eslintrc.jsonfile in the root of your project:
{
"extends": "@vboechat/eslint-config/lint"
}- You're done!
It's always a good idea to create an .editorconfig file in the root of your project. This file will help your editor to follow the same rules as ESLint. You can use the following snippet:
root = true
[*]
charset = utf-8
end_of_line = unset
indent_size = 2
indent_style = space
insert_final_newline = false
max_line_length = 120
tab_width = 2
ij_any_spaces_within_brackets = trueYou can create or override rules by adding a .eslintrc.json file in the root of your project:
{
"extends": "@vboechat/eslint-config/lint",
"rules": {
"no-console": "off"
}
}