6.0.0 • Published 7 years ago

eslint-config-commercetools v6.0.0

Weekly downloads
213
License
MIT
Repository
github
Last release
7 years ago

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

6.0.0

7 years ago

5.0.0

7 years ago

4.0.2

7 years ago

4.0.1

8 years ago

4.0.0

8 years ago

3.2.2

8 years ago

3.2.1

8 years ago

3.2.0

8 years ago

3.1.0

8 years ago

3.0.0

8 years ago

2.0.0

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.3.2

8 years ago

0.3.1

8 years ago

0.3.0

8 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago