|
3 жил өмнө | |
---|---|---|
lib | 3 жил өмнө | |
.editorconfig | 3 жил өмнө | |
.eslintrc.js | 3 жил өмнө | |
.gitignore | 3 жил өмнө | |
README.md | 3 жил өмнө | |
package.json | 3 жил өмнө | |
yarn.lock | 3 жил өмнө |
jianyu eslint rule of vue
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install @jianyu/eslint-config-style
:
yarn add @jianyu/eslint-config-style --dev
Add jianyu
to the config section of your .eslintrc
configuration file. You can omit the eslint-config-
prefix:
{
"extends": [
"@jianyu/eslint-config-style"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"jianyu/rule-name": 2
}
}