https://github.com/caomeiyouren/eslint-config-cmyr
草梅友仁个人使用的 eslint 检测规范
https://github.com/caomeiyouren/eslint-config-cmyr
Last synced: 8 months ago
JSON representation
草梅友仁个人使用的 eslint 检测规范
- Host: GitHub
- URL: https://github.com/caomeiyouren/eslint-config-cmyr
- Owner: CaoMeiYouRen
- License: mit
- Created: 2020-08-01T16:40:28.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-09-24T13:20:49.000Z (about 1 year ago)
- Last Synced: 2025-01-04T22:45:33.039Z (9 months ago)
- Language: JavaScript
- Homepage:
- Size: 163 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# eslint-config-cmyr
## 草梅友仁个人使用的 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',
],
}```