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