Linting

Catching in the editor what would otherwise be caught at deploy time, or not at all — problems in the CDS model and in the project's configuration, found by rules rather than by review.

Overview

SAP SHIPSby design

SAP publishes an ESLint plugin for CDS carrying a recommended rule set, described as best practice and universal to every CAP project — so the baseline is opinionated on purpose and arrives already chosen.

Not covered: It stops at the model. Configuration is the other half of a CAP project and ages faster than the model does — a key deprecated two releases ago keeps working silently — and the entries here that cover it are independent, built on ESLint's JSON language support rather than on the CDS plugin.

SourceCDS Lint — capirechecked

Artifacts6

6 of 6 artifacts
ArtifactSignals
Build tools5
@cbs-consulting/cds-eslintESLint plugin with one consultancy's rules for CDS files
Signals
No license
@cbs-consulting/toolsShared ESLint configuration for SAPUI5 and CAP projects
Signals
none
@sap-ux/eslint-plugin-fiori-toolsESLint rules for projects the Fiori tools generators produce
Signals
none
@sap/eslint-plugin-cdsSAP's ESLint plugin for CDS
Signals
none
eslint-plugin-better-cap-configESLint rules flagging deprecated CAP configuration
Signals
none
CLI tools1
hana-linterRegex naming rules for SAP HANA artifacts in a CAP project
Signals
Functional boundary

Content1

Group by
Piece, what it offers
Introducing eslint-plugin-better-cap-config an ESLint plugin to improve CAP configuration
SAP Community, Mauricio Lauffer, BlogThe reasoningA recipeRunnable code
Introducing eslint-plugin-better-cap-config an ESLint plugin to improve CAP configuration
SAP Community, Mauricio Lauffer, BlogThe reasoningA recipeRunnable code

Details

Coverage
statecore and community, CAP
assessed
relationshipnarrow by design
also inUI5
SourceCDS Lint — capirechecked
For your agent