UNPKG

766 BMarkdownView Raw
1# eslint-config-amazee
2
3This package provides Amazee's .eslintrc as an extensible shared config.
4
5## Install
6
7Our default export contains all of our ESLint rules, including ECMAScript 6+ and React.
8
91. Install the correct versions of each package with the following command (Linux / MacOS users):
10
11 ```sh
12 (
13 export PKG=@amazee/eslint-config-amazee;
14 npm info "$PKG@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs yarn add --dev "$PKG@latest"
15 )
16 ```
17
18 Which produces and runs a command like:
19
20 ```sh
21 yarn add --dev @amazee/eslint-config-amazee eslint@^#.#.# eslint-plugin-jsx-a11y@^#.#.# eslint-plugin-import@^#.#.# eslint-plugin-react@^#.#.#
22 ```
23
242. Add `"extends": "@amazee/eslint-config-amazee"` to your .eslintrc
25
\No newline at end of file