eslint-config-commercetools
This package provides Commercetools's .eslintrc as an extensible shared config, based on Airbnb eslint config.
Table of Contents
Usage
Add it as an npm devDependency, as well as all the necessary peerDependencies.
$ npm install --save-dev eslint-config-commercetools eslint@^#.#.# eslint-config-airbnb@^#.#.# eslint-plugin-jsx-a11y@^#.#.# eslint-plugin-import@^#.#.# eslint-plugin-react@^#.#.#
You can alternatively run this script, which basically produces the same command above:
Create a .eslintrc
file with
extends: commercetools
or if you also want the react
rules
extends: commercetools/with-react
Alternatively, you can add eslintConfig
to your package.json
"eslintConfig":
Contributing
See CONTRIBUTING.md for info on contributing to eslint-config
License
Licensed under the MIT LICENSE