|
%!s(int64=3) %!d(string=hai) anos | |
---|---|---|
lib | %!s(int64=3) %!d(string=hai) anos | |
.editorconfig | %!s(int64=3) %!d(string=hai) anos | |
.eslintrc.js | %!s(int64=3) %!d(string=hai) anos | |
.gitignore | %!s(int64=3) %!d(string=hai) anos | |
README.md | %!s(int64=3) %!d(string=hai) anos | |
package.json | %!s(int64=3) %!d(string=hai) anos | |
yarn.lock | %!s(int64=3) %!d(string=hai) anos |
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
}
}