Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iceend/eslint-config-alchemy
eslint config
https://github.com/iceend/eslint-config-alchemy
eslint eslint-config
Last synced: 8 days ago
JSON representation
eslint config
- Host: GitHub
- URL: https://github.com/iceend/eslint-config-alchemy
- Owner: IceEnd
- License: mit
- Created: 2017-07-16T07:57:58.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-30T05:23:14.000Z (over 6 years ago)
- Last Synced: 2024-11-07T20:49:27.808Z (9 days ago)
- Topics: eslint, eslint-config
- Language: JavaScript
- Homepage:
- Size: 52.7 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# eslint-config-alchemy
[![npm](https://img.shields.io/npm/v/eslint-config-alchemy.svg)](https://www.npmjs.com/package/eslint-config-alchemy)
[![MIT License](https://img.shields.io/github/license/mashape/apistatus.svg?maxAge=2592000)](https://github.com/IceEnd/eslint-config-alchemy/blob/master/LICENSE)## 前端编码规范
- 错误规避
- ES6
- Node.js & Common
- 最佳实践
- 严格模式
- 代码风格
- 变量声明
- React 规则
- import
- JSX## 使用
```package.json``` 中添加依赖:
```javascript
"eslint": "^4.2.0",
"eslint-config-alchemy": "latest",
"eslint-plugin-import": "^2.7.0",
"eslint-plugin-jsx-a11y": "^6.0.2",
"eslint-plugin-react": "^7.1.0",
```设置配置文件,例如```.eslintrc.yml```:
```yml
env:
node: true
browser: true
extends: alchemy
```