eslint-config-karlhorky
@karlhorky's ESLint config.
Install
This contains ESLint rules for ECMAScript 6+, React and Flow. It requires eslint
, eslint-plugin-babel
, eslint-plugin-flowtype
, eslint-plugin-import
, eslint-plugin-jsx-a11y
, and eslint-plugin-react
.
- Ensure packages are installed with correct version numbers by running:
Which produces and runs a command like:
npm install --save-dev eslint-config-karlhorky eslint@^#.#.# eslint-plugin-babel@^#.#.# eslint-plugin-flowtype@^#.#.# eslint-plugin-import@^#.#.# eslint-plugin-jsx-a11y@^#.#.# eslint-plugin-react@^#.#.#
- Add
"extends": "karlhorky"
to your .eslintrc