eslint-plugin-woodpecker 1.1.0 → 1.1.2
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/package.json +6 -6
- package/src/utils/pkg.js +2 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-woodpecker",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "ESLint rules for Woodpecker CI (including shell commands)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ci",
|
|
@@ -68,19 +68,19 @@
|
|
|
68
68
|
"@eslint/markdown": "^7.5.1",
|
|
69
69
|
"@stylistic/eslint-plugin": "^5.10.0",
|
|
70
70
|
"eslint": "^10.13.0",
|
|
71
|
-
"eslint-plugin-constructors": "^1.5.
|
|
71
|
+
"eslint-plugin-constructors": "^1.5.1",
|
|
72
72
|
"eslint-plugin-eslint-plugin": "^7.6.2",
|
|
73
73
|
"eslint-plugin-import-x": "^4.17.1",
|
|
74
|
-
"eslint-plugin-n": "^18.
|
|
74
|
+
"eslint-plugin-n": "^18.5.0",
|
|
75
75
|
"eslint-plugin-no-secrets": "^2.3.3",
|
|
76
76
|
"eslint-plugin-no-unsanitized": "^4.1.5",
|
|
77
|
-
"eslint-plugin-package-json": "^1.
|
|
77
|
+
"eslint-plugin-package-json": "^1.11.0",
|
|
78
78
|
"eslint-plugin-promise": "^7.3.0",
|
|
79
79
|
"eslint-plugin-regexp": "^3.3.1",
|
|
80
80
|
"eslint-plugin-security": "^4.2.0",
|
|
81
|
+
"eslint-plugin-sonarjs": "^4.2.2",
|
|
81
82
|
"eslint-plugin-yml": "^3.9.0",
|
|
82
|
-
"
|
|
83
|
-
"oxlint": "^1.88.0",
|
|
83
|
+
"oxlint": "^1.89.0",
|
|
84
84
|
"yaml-eslint-parser": "^2.1.0"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
package/src/utils/pkg.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
// oxlint-disable security/detect-non-literal-fs-filename
|
|
2
|
-
|
|
3
1
|
import { fileURLToPath } from 'node:url'
|
|
4
2
|
import fs from 'node:fs'
|
|
5
3
|
import path from 'node:path'
|
|
6
4
|
|
|
7
5
|
export default {
|
|
8
|
-
getName() {
|
|
6
|
+
getName() { // oxlint-disable security/detect-non-literal-fs-filename
|
|
9
7
|
let current = path.dirname(fileURLToPath(import.meta.url))
|
|
10
8
|
while (current) {
|
|
11
9
|
const pkgPath = path.join(current, 'package.json')
|
|
@@ -19,5 +17,5 @@ export default {
|
|
|
19
17
|
current = parent
|
|
20
18
|
}
|
|
21
19
|
return null
|
|
22
|
-
}
|
|
20
|
+
} // oxlint-enable security/detect-non-literal-fs-filename
|
|
23
21
|
}
|