The SAP Cloud SDK provides a configuration with recommended ESLint rules and plugins.
It extends the
It also uses the
eslint-config-prettier to avoid any formatting conflicts when using the highly recommended Prettier.
@sap-cloud-sdk/eslint-config package in your project.
To add the configuration please adjust your ESLint configuration (usually called
or if you want to combine this configuration with others:
"extends": ["example-config", "@sap-cloud-sdk"]
This configuration depends on plugins
eslint-plugin-unused-imports, which need to be installed in your project.
ESLint merges these shareable configurations with your configuration.
Any rule configured in your
.eslintrc.js will overwrite the setting for this rule in the shareable configuration.