@sap/eslint-plugin-cds 2.2.2 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,14 +19,17 @@ module.exports = {
19
19
  },
20
20
 
21
21
  /**
22
- * Checks whether a well-defined cds model exists
22
+ * Checks whether a cds model is error-free
23
23
  * @param context cds context object
24
24
  * @returns
25
25
  */
26
26
  isValidModel: function (context) {
27
27
  const cds = context.cds;
28
- if (cds && cds.model && !cds.model.err) {
29
- return true;
28
+ if (cds) {
29
+ if (cds.model) {
30
+ return !cds.model.err;
31
+ }
32
+ return true; // allow no model
30
33
  }
31
34
  return false;
32
35
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap/eslint-plugin-cds",
3
- "version": "2.2.2",
3
+ "version": "2.3.0",
4
4
  "description": "ESLint plugin including recommended SAP Cloud Application Programming model and environment rules",
5
5
  "homepage": "https://cap.cloud.sap/",
6
6
  "keywords": [
@@ -20,7 +20,7 @@
20
20
  "README.md"
21
21
  ],
22
22
  "dependencies": {
23
- "@sap/cds": "^5.0.0",
23
+ "@sap/cds": "^5.6.0",
24
24
  "semver": "^7.3.4"
25
25
  },
26
26
  "peerDependencies": {