Shared ESLint config for JavaScript code.
Used within repos as a common ESLint config. If project's need to override a configuration value, do it in the project's own .eslintrc
.
The default export contains all ESLint rules, including ECMAScript 6+. It requires eslint
and eslint-plugin-import
.
npm install --save-dev eslint-config-as-base
or
yarn add eslint-config-as-base --dev
Then, extend as-base
in your .eslintrc
:
{
"extends": "as-base"
}
eslint-config-as-base has eslint-plugin-import and eslint as peer dependencies.