@hhp-tools/eslint-config

简介

统一 eslint 配置,支持 vuejsts 文件的检查

注意:会读取 prettier 的设置,建议配合 prettier 一起食用

使用

安装依赖

npm i -D @hhp-tools/eslint-config
1

package.json 中配置

{
  "eslintConfig": {
    "extends": ["@hhp-tools/eslint-config"]
  }
}
1
2
3
4
5

或者在 .eslintrc.* 中配置

{
  "extends": "@hhp-tools/eslint-config"
}
1
2
3
Last Updated: 2021/8/18 下午5:25:38
Contributors: hhp1614