@sap/eslint-plugin-cds 3.0.2 → 3.0.3

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 CHANGED
@@ -6,6 +6,12 @@ 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
+ ## [3.0.3] - 2024-05-08
10
+
11
+ ### Fixed
12
+
13
+ - Disabling ESLint for the next line via `eslint-disable-next-line` now works properly in _cds_ files
14
+
9
15
  ## [3.0.2] - 2024-04-29
10
16
 
11
17
  ### Fixed
@@ -14,7 +20,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).
14
20
 
15
21
  ### Changed
16
22
 
17
- - requires `ESLint` version 8 or above
23
+ - Requires `ESLint` version 8 or above
18
24
 
19
25
  ## [3.0.1] - 2024-04-25
20
26
 
@@ -2,7 +2,6 @@ module.exports = {
2
2
  meta: {
3
3
  schema: [{/* to avoid deprecation warning for ESLint 9 */}],
4
4
  docs: {
5
- // eslint-disable-next-line quotes
6
5
  description: "Draft-enabled entities shall not be used in views that make use of `JOIN`.",
7
6
  recommended: true
8
7
  },
@@ -1,4 +1,4 @@
1
- /* eslint-disable no-undef */
1
+
2
2
  module.exports = {
3
3
  meta: {
4
4
  schema: [{/* to avoid deprecation warning for ESLint 9 */}],
@@ -323,7 +323,7 @@ function getDisabled (code, sourcecode, line) {
323
323
  }
324
324
  })
325
325
  for (const el of listDisabled.filter(
326
- (d) => d.lineComment > line && (d.lineDisabled === 'EOF' || d.lineDisabled === line)
326
+ (d) => d.lineComment < line && (d.lineDisabled === 'EOF' || d.lineDisabled === line)
327
327
  )) {
328
328
  if (el.lineDisabled === 'EOF') {
329
329
  el.lineDisabled = getLastLine(code)
@@ -145,7 +145,7 @@ function genDocFiles (rules, docsPath, release = false) {
145
145
 
146
146
  // Get rule details
147
147
  let mdRules = ''
148
- /* eslint-disable-next-line no-unused-vars */
148
+
149
149
  rules.forEach(rule => {
150
150
  mdRules += `${rule.contents}\n\n${rule.sources}\n\n---\n\n`
151
151
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap/eslint-plugin-cds",
3
- "version": "3.0.2",
3
+ "version": "3.0.3",
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": [