eslint-config
使用方法
安装
npm i -D eslint @mozc/eslint-config
配置
- 在
package.json
中配置eslintConfig
{
"eslintConfig": {
"ignorePatterns": [
"bin",
"dist",
"node_modules",
"public"
],
"extends": [
"@mozc/eslint-config"
]
}
}
单个规则使用
- 如果只需要使用单个规则,可以分别配置
"@mozc/eslint-config/basic"
,@mozc/eslint-config/typescript
,@mozc/eslint-config/vue