UNPKG

983 BMarkdownView Raw
1# eslint-config-elemefe
2
3This package provides Elemefe's base JS .eslintrc as an extensible shared config.
4
5## Usage
6
7### eslint-config-elemefe
8
9Our default export contains all of our ESLint rules, including ECMAScript 6.
10
11First, install this package
12```sh
13npm install --save-dev eslint-config-elemefe eslint
14```
15Then add following contents to your .eslintrc file
16```
17{
18 "extends": "elemefe"
19}
20```
21
22### eslint-config-elemefe/legacy
23
24For some legacy project using es5.
25
26First, install this package
27```sh
28npm install --save-dev eslint-config-elemefe eslint
29```
30Then add following contents to your .eslintrc file
31```
32{
33 "extends": "elemefe/legacy"
34}
35```
36
37### eslint-config-elemefe/react
38First, install this package and necessary plugins
39```sh
40npm install --save-dev eslint-config-elemefe eslint babel-eslint eslint-plugin-react eslint-plugin-import eslint-plugin-jsx-a11y
41```
42Then add following contents to your .eslintrc file
43```
44{
45 "extends": "elemefe/react"
46}
47```
48
49## License
50MIT