eslint-config-cmyr

1.1.30 • Public • Published

eslint-config-cmyr

Version 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',
    ],
}

Package Sidebar

Install

npm i eslint-config-cmyr

Weekly Downloads

405

Version

1.1.30

License

MIT

Unpacked Size

26.9 kB

Total Files

10

Last publish

Collaborators

  • cao-mei-you-ren