1.2.1 • Published 3 years ago
@vboechat/eslint-config v1.2.1
@vboechat/eslint-config
This is my personal ESLint configuration.
How to use
- 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!
Create an editorconfig file
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 = trueCustomization
You 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"
}
}