Newly Paranoid Maintainers

    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

    Install

    npm i eslint-config-commercetools

    DownloadsWeekly Downloads

    97

    Version

    6.0.0

    License

    MIT

    Last publish

    Collaborators

    • chukwuemeka
    • ahmetoz
    • commercetools-admin
    • emmenko
    • hajoeichler
    • yanns
    • tdeekens
    • timonrey
    • vineetkumarkushwaha
    • acbeni
    • markusazer
    • jherey
    • danrleyt
    • michele.george
    • jenschude