The recommended eslint config of 75team
Extends eslint-config-airbnb-base
.
Use it as a foundation for your own config.
To see the rules that this config uses, please read the detail of our config rules.
npm install eslint eslint-config-75team --save-dev
Once you installed eslint-config-75team
locally within you project, just set you eslint config to :
{
"extends": "eslint-config-75team"
}
Since we have extended 'stylelint-config-standard'
, you don't need to install the standard extends again.
Simply add a "rules" key to your config, then add your overrides and additions there.
For example, if you want the max param number in a function to be 6, just add 'max-params': ['error', 6],
to rules
{
"extends": "eslint-config-75team",
"rules": {
"max-params": ["error", 5]
}
}
If you need furthor information about customizing rules, you can read configuration guide and rules of eslint
If you want to use eslint in your project, we suggest you use the corresponding plugin in your IDE to get better coding experience.
If you use VSCode, you need to install the following plugins:
- eslint: Integrates ESLint into VS Code.
If you use Sublime, you need to install SublimeLinter and SublimeLinter-contrib-eslint
In order for eslint to be executed by SublimeLinter,you must ensure that nodejs is available to SublimeLinter.Before going any further, please read and follow the steps in “Finding a linter executable” through “Validating your PATH” in the documentation.