eslint-config-mgcrea

8.0.0 • Public • Published

eslint-config-mgcrea

npm version

This package provides my own .eslintrc as an extensible shared config.

It's basically a small wrapper around Airbnb's configurations, with some minor changes.

Usage

We export three ESLint configurations for your usage.

eslint-config-mgcrea

Our default export contains all of our ESLint rules, including EcmaScript 6+ and React. It requires eslint and eslint-plugin-react.

  1. npm install --save-dev eslint-config-mgcrea eslint-plugin-react eslint
  2. add "extends": "mgcrea" to your .eslintrc

eslint-config-mgcrea/base

Lints ES6+ but does not lint React. Requires eslint.

  1. npm install --save-dev eslint-config-mgcrea eslint
  2. add "extends": "mgcrea/base" to your .eslintrc

eslint-config-mgcrea/legacy

Lints ES5 and below. Only requires eslint.

  1. npm install --save-dev eslint-config-mgcrea eslint
  2. add "extends": "mgcrea/legacy" to your .eslintrc

See Airbnb's Javascript styleguide and the ESlint config docs for more information.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 8.0.0
    64
    • latest

Version History

Package Sidebar

Install

npm i eslint-config-mgcrea

Weekly Downloads

71

Version

8.0.0

License

MIT

Last publish

Collaborators

  • mgcrea