2.0.4 • Published 1 year ago
@ausuliv/eslint-config-redhat-cloud-services v2.0.4
Recommended eslint configuration used in cloud.redhat.com frontend apps.
Installation
NPM
$ npm i --save-dev @redhat-cloud-services/eslint-config-redhat-cloud-servicesYARN
$ yarn add -D @redhat-cloud-services/eslint-config-redhat-cloud-servicesConfiguration
Eslint
In your eslint configuration extends this eslint config
{
"extends": "@redhat-cloud-services/eslint-config-redhat-cloud-services"
}You can also extend multiple configurations and customize your rules
{
"extends": ["@redhat-cloud-services/eslint-config-redhat-cloud-services", "other-config", ...],
"rules": {
"no-console": "warn"
}
}Prettier
If you are not using prettier, firtst add prettier.config.js.
Add this content to your prettier configuration file:
module.exports = {
...require('@redhat-cloud-services/eslint-config-redhat-cloud-services/prettier.config.js'),
// For more configuration options visit: https://prettier.io/
};Used packages
- eslint-config-prettier
- eslint-plugin-prettier
- eslint-plugin-react
- prettier
2.0.4
1 year ago