1.1.0 • Published 4 years ago

eslint-config-hyder v1.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

使用说明

yarn add --dev eslint eslint-config-hyder

.eslintrc中配置

{
  extends: 'hyder',
  rules: {
    // custom rules
  }
}

package.json中配置

{
  "scripts": {
    "lint": "eslint src"
  }
}

然后就可以yarn lint来检测代码了。

使用 yarn lint --fix 自动修复一些格式不规范的点。