Include the package that you want to the "extends" array in your .eslintrc.* file.
You can combine with multiple packages. See the available packages
An example to how configure an ES6 + React project.\
npm install --save-dev eslint prettier @mobilabsolutions/eslint-config @mobilabsolutions/eslint-config-react
{
"extends": [
"@mobilabsolutions/eslint-config/es6",
"@mobilabsolutions/eslint-config-react"
]
}
git clone [email protected]:mobilabsolutions/eslint-config.git
cd eslint-config
yarn
yarn run bootstrap
@mobilabsolutions/eslint-config - When using ES5, ES6, ...
@mobilabsolutions/eslint-config-react - When using React (requires es6 base configuration or higher)
@mobilabsolutions/eslint-config-node - When using NodeJS
@mobilabsolutions/eslint-config-jest - When using Jest to develop the tests\
You can easily override any specific options.
See http://eslint.org/docs/developer-guide/shareable-configs for more information.
{
"rules": {
"constructor-super": "off",
"generator-star-spacing": "off",
"no-class-assign": "off"
}
}
See how to contribute Contributors Guide