@sap/eslint-plugin-cds 2.6.5 → 2.6.7
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.
- package/CHANGELOG.md +11 -0
- package/lib/conf/all.js +0 -1
- package/lib/conf/recommended.js +0 -1
- package/lib/rules/index.js +0 -1
- package/package.json +1 -1
- package/lib/rules/require-2many-oncond.js +0 -22
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,17 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
|
6
6
|
|
|
7
7
|
The format is based on [Keep a Changelog](http://keepachangelog.com/).
|
|
8
8
|
|
|
9
|
+
## [2.6.7] - 2024-03-11
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- Removed loading of previously removed rule.
|
|
14
|
+
|
|
15
|
+
## [2.6.6] - 2024-03-11
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
|
|
19
|
+
- Removed `require-2many-oncond` rule, as it is now covered by the compiler.
|
|
9
20
|
|
|
10
21
|
## [2.6.5] - 2024-01-31
|
|
11
22
|
|
package/lib/conf/all.js
CHANGED
|
@@ -14,7 +14,6 @@ module.exports = {
|
|
|
14
14
|
'@sap/cds/no-db-keywords': 2,
|
|
15
15
|
'@sap/cds/no-dollar-prefixed-names': 2,
|
|
16
16
|
'@sap/cds/no-join-on-draft': 2,
|
|
17
|
-
'@sap/cds/require-2many-oncond': 2,
|
|
18
17
|
'@sap/cds/sql-cast-suggestion': 2,
|
|
19
18
|
'@sap/cds/start-elements-lowercase': 2,
|
|
20
19
|
'@sap/cds/start-entities-uppercase': 2,
|
package/lib/conf/recommended.js
CHANGED
|
@@ -13,7 +13,6 @@ module.exports = {
|
|
|
13
13
|
'@sap/cds/no-db-keywords': 1,
|
|
14
14
|
'@sap/cds/no-dollar-prefixed-names': 1,
|
|
15
15
|
'@sap/cds/no-join-on-draft': 1,
|
|
16
|
-
'@sap/cds/require-2many-oncond': 2,
|
|
17
16
|
'@sap/cds/sql-cast-suggestion': 1,
|
|
18
17
|
'@sap/cds/valid-csv-header': 1,
|
|
19
18
|
'@sap/cds/extension-restrictions': 2
|
package/lib/rules/index.js
CHANGED
|
@@ -15,7 +15,6 @@ const rules = {
|
|
|
15
15
|
'no-db-keywords': () => createRule(require('./no-db-keywords')),
|
|
16
16
|
'no-dollar-prefixed-names': () => createRule(require('./no-dollar-prefixed-names')),
|
|
17
17
|
'no-join-on-draft': () => createRule(require('./no-join-on-draft')),
|
|
18
|
-
'require-2many-oncond': () => createRule(require('./require-2many-oncond')),
|
|
19
18
|
'sql-cast-suggestion': () => createRule(require('./sql-cast-suggestion')),
|
|
20
19
|
'start-elements-lowercase': () => createRule(require('./start-elements-lowercase')),
|
|
21
20
|
'start-entities-uppercase': () => createRule(require('./start-entities-uppercase')),
|
package/package.json
CHANGED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
meta: {
|
|
3
|
-
schema: [{/* to avoid deprecation warning for ESLint 9 */}],
|
|
4
|
-
docs: {
|
|
5
|
-
description: 'Foreign key information of a `TO MANY` relationship must be defined within the target and specified in an `ON` condition.',
|
|
6
|
-
recommended: true
|
|
7
|
-
},
|
|
8
|
-
type: 'problem'
|
|
9
|
-
},
|
|
10
|
-
create: function (context) {
|
|
11
|
-
return { element: check2manyOncond }
|
|
12
|
-
|
|
13
|
-
function check2manyOncond (e) {
|
|
14
|
-
if (e.is2many && !e.on && typeof e.target === 'string') {
|
|
15
|
-
context.report({
|
|
16
|
-
message: `You must provide an \`ON\` condition for \`TO MANY\` relationship '${e.name}'.`,
|
|
17
|
-
node: context.getNode(e)
|
|
18
|
-
})
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|