@sap/eslint-plugin-cds 3.0.2 → 3.0.4
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,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
|
+
## [3.0.4] - 2024-06-19
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
- Internal refactorings
|
|
13
|
+
|
|
14
|
+
## [3.0.3] - 2024-05-08
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- Disabling ESLint for the next line via `eslint-disable-next-line` now works properly in _cds_ files
|
|
19
|
+
|
|
9
20
|
## [3.0.2] - 2024-04-29
|
|
10
21
|
|
|
11
22
|
### Fixed
|
|
@@ -14,7 +25,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).
|
|
|
14
25
|
|
|
15
26
|
### Changed
|
|
16
27
|
|
|
17
|
-
-
|
|
28
|
+
- Requires `ESLint` version 8 or above
|
|
18
29
|
|
|
19
30
|
## [3.0.1] - 2024-04-25
|
|
20
31
|
|
package/lib/utils/createRule.js
CHANGED
|
@@ -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
|
|
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)
|
package/lib/utils/genDocs.js
CHANGED
|
@@ -145,7 +145,7 @@ function genDocFiles (rules, docsPath, release = false) {
|
|
|
145
145
|
|
|
146
146
|
// Get rule details
|
|
147
147
|
let mdRules = ''
|
|
148
|
-
|
|
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.
|
|
3
|
+
"version": "3.0.4",
|
|
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": ">=
|
|
23
|
+
"@sap/cds": ">=7",
|
|
24
24
|
"semver": "^7.3.4"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|