An open API service indexing awesome lists of open source software.

https://github.com/caomeiyouren/eslint-config-cmyr

草梅友仁个人使用的 eslint 检测规范
https://github.com/caomeiyouren/eslint-config-cmyr

Last synced: 8 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# eslint-config-cmyr



Version


npm publish


GitHub Workflow Status

node-current

Documentation


Maintenance


License: MIT

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

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

## 风格理念

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

## 配置

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

```