Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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
```