Skip to content

Ben Ilegbodu's .eslintrc as an extensible shared config for all of his projects

License

Notifications You must be signed in to change notification settings

benmvp/eslint-config-benmvp

Repository files navigation

eslint-config-benmvp

version Build Status Dev Dependencies status downloads Maintenance Status license

This package provides Ben Ilegbodu's .eslintrc.json as an extensible shared config for all of his projects. 😀

Usage

The package exports three ESLint configurations for your usage.

eslint-config-benmvp

The default export contains all of the ESLint rules, including ES6+/ES2015+ and React. It requires eslint, eslint-plugin-react, eslint-plugin-jsx-a11y and babel-eslint.

Install the dependencies:

npm install --save-dev eslint eslint-plugin-react eslint-plugin-jsx-a11y babel-eslint eslint-config-benmvp

Extend eslint-config-benmvp in your .eslintrc.json:

{
    "extends": "benmvp"
}

NOTE: This configuration extends eslint:recommended and plugin:react/recommended.

eslint-config-benmvp/base

Lints ES6+/ES2015+ but does not lint React. It requires eslint and babel-eslint.

Install the dependencies:

npm install --save-dev eslint babel-eslint eslint-config-benmvp

Extend eslint-config-benmvp/base in your .eslintrc.json:

{
    "extends": "benmvp/base"
}

NOTE: This configuration extends eslint:recommended.

eslint-config-benmvp/legacy

Lints ES5-. Only requires eslint.

Install the dependencies:

npm install --save-dev eslint eslint-config-benmvp

Extend eslint-config-benmvp/legacy in your .eslintrc.json:

{
    "extends": "benmvp/legacy"
}

NOTE: This configuration extends eslint:recommended.

License

MIT. Copyright (c) 2016 Ben Ilegbodu.

Thanks

Many thanks to Airbnb and their example eslint-config-airbnb.

About

Ben Ilegbodu's .eslintrc as an extensible shared config for all of his projects

Resources

License

Stars

Watchers

Forks

Packages

No packages published