https://github.com/iceend/eslint-config-alchemy
eslint config
https://github.com/iceend/eslint-config-alchemy
eslint eslint-config
Last synced: 8 months 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 (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-05-30T05:23:14.000Z (about 8 years ago)
- Last Synced: 2025-08-16T13:54:02.931Z (10 months 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
[](https://www.npmjs.com/package/eslint-config-alchemy)
[](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
```