eslint-plugin-n 17.7.0 → 17.8.1
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/lib/rules/hashbang.js
CHANGED
|
@@ -50,7 +50,7 @@ function isNodeShebang(shebang, executableName) {
|
|
|
50
50
|
* @returns {string}
|
|
51
51
|
*/
|
|
52
52
|
function getExpectedExecutableName(context) {
|
|
53
|
-
const extension = path.extname(context.filename)
|
|
53
|
+
const extension = path.extname(context.filename ?? context.getFilename())
|
|
54
54
|
/** @type {{ executableMap: Record<string, string> }} */
|
|
55
55
|
const { executableMap = {} } = context.options?.[0] ?? {}
|
|
56
56
|
|
|
@@ -5,6 +5,7 @@ const { READ } = require("@eslint-community/eslint-utils")
|
|
|
5
5
|
/** @type {import('../types.js').SupportVersionTraceMap} */
|
|
6
6
|
const zlib = {
|
|
7
7
|
constants: { [READ]: { supported: ["7.0.0"] } },
|
|
8
|
+
crc32: { [READ]: { supported: ["22.2.0"] } },
|
|
8
9
|
createBrotliCompress: { [READ]: { supported: ["11.7.0", "10.16.0"] } },
|
|
9
10
|
createBrotliDecompress: { [READ]: { supported: ["11.7.0", "10.16.0"] } },
|
|
10
11
|
createDeflate: { [READ]: { supported: ["0.5.8"] } },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-n",
|
|
3
|
-
"version": "17.
|
|
3
|
+
"version": "17.8.1",
|
|
4
4
|
"description": "Additional ESLint's rules for Node.js",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@eslint-community/eslint-utils": "^4.4.0",
|
|
20
|
-
"enhanced-resolve": "^5.
|
|
20
|
+
"enhanced-resolve": "^5.17.0",
|
|
21
21
|
"eslint-plugin-es-x": "^7.5.0",
|
|
22
22
|
"get-tsconfig": "^4.7.0",
|
|
23
23
|
"globals": "^15.0.0",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"fast-glob": "^3.2.12",
|
|
41
41
|
"husky": "^9.0.0",
|
|
42
42
|
"lint-staged": "^15.2.0",
|
|
43
|
-
"markdownlint-cli": "^0.
|
|
43
|
+
"markdownlint-cli": "^0.41.0",
|
|
44
44
|
"mocha": "^10.2.0",
|
|
45
45
|
"npm-run-all2": "^6.1.1",
|
|
46
46
|
"nyc": "^15.1.0",
|