1.1.0 • Published 2 years ago

eslint-config-hfex v1.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

eslint-config-hfex

前端 eslint 静态语法检测规范插件。

目前提供如下两套规则

  • recommended(vue2 推荐配置,如果没有特殊需求都使用这套)
  • vue3-recommended(vue3 推荐配置,如果没有特殊需求都使用这套)

使用

安装eslint-config-hfex

npm i eslint-config-hfex eslint -D

package.json中添加

"scripts":{
    "lint": "eslint src/**/*.{ts,js,json,vue,jsx,tsx} --fix",
}
"eslintConfig": {
    "root": true,
    "extends": [
      "hfex"
    ]
},

测试和语法检测

npm run lint