@sap/eslint-plugin-cds
SAP's ESLint plugin for CDS, carrying the model and environment rules capire calls best practice and universal for every CAP project.
Facts
Where it sits
What it declares
Every artifact
- Type
- Build tool
- Origin
- By SAP
As a build tool
- Declared for
- >=9
- Distributed through
- does not say
Connections
Catching problems in code, models and configuration by rules
Download
Install
npm add @sap/eslint-plugin-cdsDerived from the package name. No recipe recorded; the README has the configuration.
README
quoted from @sap/eslint-plugin-cds@4.2.5 under See LICENSE file, read@sap/eslint-plugin-cds
The ESLint plugin includes a set of recommended SAP Cloud Application Programming Model (CAP) model and environment rules. The aim of CDS linting is to catch issues with CDS models and with the environment early. To use this module we recommend to install @sap/cds-dk globally.
See the CDS Linting documentation for more details, or jump directly to a complete list of rules. CAP provides a set of recommended rules. On top, you can create your own, application-specific rules.
History
Fixes 1
Fixes 1
Fixes 1
Fixes 1
Fixes 1
Fixes 1
Fixes 3
Features 1
Features 1, Changed 3, Fixes 1
Removed 1, Features 5, Changed 1
Changed 1, Fixes 3
Fixes 1
Changed 1, Fixes 5
Removed 1, Features 4, Fixes 6
Fixes 1
Changed 1
Fixes 1
Changed 1, Fixes 1
Fixes 1
Features 1, Changed 1, Fixes 1
Features 1, Changed 2, Fixes 1
Fixes 1
Changed 1
Fixes 1
Features 1, Fixes 2
Changed 1
Changed 1
Changed 4
Features 1, Changed 2, Fixes 1
Features 2, Changed 2
Features 1, Changed 2
Features 1, Changed 1
Changed 2
Changed 2
Features 3
Changed 2
Changed 4
Features 1, Changed 2
Features 1, Changed 2
Changed 1
Features 1, Changed 1
Changed 1
Changed 1
Changed 4
Features 1, Changed 1
Features 1, Changed 1
Changed 1
Changed 1
Features 1, Changed 1
Features 2, Changed 1
Changed 1
Changed 4
Changed 3
Changed 3
Changed 3
Changed 2
Changed 5
Features 1, Changed 1
Features 4
Changed 1
Features 3
Changed 5
Changed 2
Changed 2
Features 1, Changed 1
Features 1
Others providing
Compare all 11 on the Linting page →- @cbs-consulting/cds-eslint@cbs-consulting/cds-eslintAn ESLint plugin for CDS files carrying one consultancy's own rules, published so that the consultancy's projects lint their CDS models the same way.independent, capESLint plugin with one consultancy's rules for CDS filesfrom CAP
- @cbs-consulting/tools@cbs-consulting/toolsShared ESLint configuration for SAPUI5 and CAP projects, the config rather than the rules, so a team adopts a house style by adding one dependency.independent, capShared ESLint configuration for SAPUI5 and CAP projectsfrom CAP
- ui5plugin-linterui5plugin-linterA command-line linter for UI5 projects, run as ui5linter, that checks JavaScript and TypeScript classes, XML views and fragments, and i18n properties files.independent, ui5Command-line linter for UI5 classes, XML views and i18n filesfrom UI5
- ui5pluginui5pluginThe SAPUI5 Extension for Visual Studio Code: completion, definitions, CodeLens, diagnostics, code actions, hover and an XML formatter for UI5 views, controllers and manifest.json.independent, ui5SAPUI5 extension for Visual Studio Codefrom UI5
- eslint-plugin-better-cap-configeslint-plugin-better-cap-configA set of ESLint rules that read CAP configuration and flag the cds settings that have since been deprecated, putting that check in the linter a project already runs, with no dependencies of its own.independent, capESLint rules flagging deprecated CAP configurationfrom CAP
- hana-linterhana-linterA command line that checks the names of the native SAP HANA artifact files in a CAP project, and the identifiers inside them, against regex rules the project keeps in a config file.independent, capRegex naming rules for SAP HANA artifacts in a CAP projectfrom CAP
- @sap-ux/eslint-plugin-fiori-tools@sap-ux/eslint-plugin-fiori-toolsESLint rules from the Fiori tools team, aimed at the parts of a project their generators produce.sap official, capESLint rules for projects the Fiori tools generators producefrom CAP
- vscode-ui5-language-assistantvscode-ui5-language-assistantSAP's VS Code extension for SAPUI5 and OpenUI5: completion, validation, hover tooltips, go to definition, quick fix and formatting for XML views, and completion and validation for manifest.json.sap official, ui5VS Code extension for SAPUI5 and OpenUI5 XML views and manifestfrom UI5
- @satiroglu/kaev@satiroglu/kaevA command line that runs rule-based checks over a SAPUI5 or OpenUI5 project, reporting each finding with a rule id, a category, a severity, a confidence and the file it sits in.independent, ui5Rule-based checker for SAPUI5 and OpenUI5 projectsfrom UI5
- @ui5/linter@ui5/linterSAP's static analysis tool for UI5 projects: it scans JavaScript, TypeScript, XML, JSON and other files for deprecated APIs, global variables and possible CSP violations, and fixes part of them with --fix.sap official, ui5Static analysis tool for UI5 projectsfrom UI5
Details
Sources
Sources are graph entities: the same page may back several entries, and an unreachable source flags every row that rests on it.
Compatibility and provenance
History in the atlas
- npm: https://www.npmjs.com/package/@sap/eslint-plugin-cds
- Typed cds-plugin by placement, which defaults every candidate to that. It is not one.
- SAP's ESLint plugin for CDS, carrying the model and environment rules capire calls best practice and universal for every CAP project.
- First seen.
For your agent
- Ref
artifact:sap-eslint-plugin-cds- JSON
- /artifacts/sap-eslint-plugin-cds.json
- MCP
- Connecting an agent