eslint-config-cmyr

v1.1.6
草梅友仁个人使用的 eslint 检测规范
code style lint eslint code style

eslint-config-cmyr

Version npm publish GitHub Workflow Status node-current Documentation Maintenance License: MIT

草梅友仁个人使用的 eslint 检测规范

"lint": "cross-env NODE_ENV=production eslint src --fix --ext .js,.ts"

风格理念

  1. 若无必要,勿增实体。
  2. 如果某元素可有可无,则无
  3. 若移除某元素会导致 bug ,则留,否则无

配置

// .eslintrc.js
module.exports = {
    root: true,
    extends: [
        'cmyr',
    ],
}

Metadata

  • MIT
  • >=8
  • CaoMeiYouRen
  • released 2/27/2021

Downloads

Maintainers