This package has been deprecated

Author message:

The package is not maintained anymore.

eslint-config-commercetools

6.0.0 • Public • Published

commercetools-icon

eslint-config-commercetools

NPM

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:

(
  export PKG=eslint-config-commercetools;
  npm info "$PKG" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "$PKG"
)

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"{
  "extends": "commercetools"
}

Contributing

See CONTRIBUTING.md for info on contributing to eslint-config

License

Licensed under the MIT LICENSE

Package Sidebar

Install

npm i eslint-config-commercetools

Weekly Downloads

162

Version

6.0.0

License

MIT

Last publish

Collaborators

  • commercetools-admin
  • emmenko
  • hajoeichler
  • yanns
  • tdeekens
  • timonrey
  • vineetkumarkushwaha
  • markusazer
  • jherey
  • danrleyt
  • jenschude
  • chukwuemeka