0.1.4 • Published 4 years ago
@duiyuan/eslint-config v0.1.4
The standard shareable eslint configuration shared by duiyuan Front-End team.
Installation
npm
$ npm install typescript eslint prettier @duiyuan/eslint-config --save-devyarn
$ yarn add typescript eslint prettier @duiyuan/eslint-config --DUsage
Set your eslint config to
{
"extends": "@duiyuan/eslint-config"
}Extending the config
Simply add a "rules" key to your config, then add your overrides and additions there.
For example, to turn off the scss/dollar-variable-pattern rule:
{
"extends": "@duiyuan/eslint-config",
"rules": {
"@typescript-eslint/no-empty-function": "off",
}
}