@tony.ganchev/eslint-plugin-header 3.3.0 → 3.3.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/header.js +1 -1
- package/package.json +5 -5
package/lib/rules/header.js
CHANGED
|
@@ -205,7 +205,7 @@ function getLeadingComments(sourceCode) {
|
|
|
205
205
|
for (let i = 0; i < commentsBeforeCode.length; ++i) {
|
|
206
206
|
const comment = commentsBeforeCode[i];
|
|
207
207
|
|
|
208
|
-
if (comment.type === "Block") {
|
|
208
|
+
if (comment.type === "Block" || /** @type {string} */ (comment.type) === "Shebang") {
|
|
209
209
|
// Push any existing current group first
|
|
210
210
|
if (currentGroup.length > 0) {
|
|
211
211
|
groups.push(currentGroup);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tony.ganchev/eslint-plugin-header",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.1",
|
|
4
4
|
"description": "The native ESLint 9/10 header plugin. A zero-bloat, drop-in replacement for 'eslint-plugin-header' with first-class Flat Config & TypeScript support. Auto-fix Copyright, License, and banner comments in JavaScrip and TypeScript files.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -24,18 +24,18 @@
|
|
|
24
24
|
"@stylistic/eslint-plugin": "^5.10.0",
|
|
25
25
|
"@types/estree": "^1.0.8",
|
|
26
26
|
"@types/json-schema": "^7.0.15",
|
|
27
|
-
"@types/node": "^25.
|
|
27
|
+
"@types/node": "^25.5.0",
|
|
28
28
|
"c8": "^11.0.0",
|
|
29
29
|
"eslint": "^10.0.3",
|
|
30
30
|
"eslint-plugin-eslint-plugin": "^7.3.2",
|
|
31
|
-
"eslint-plugin-jsdoc": "^62.
|
|
31
|
+
"eslint-plugin-jsdoc": "^62.8.0",
|
|
32
32
|
"eslint-plugin-n": "^17.24.0",
|
|
33
33
|
"globals": "^17.4.0",
|
|
34
34
|
"markdownlint-cli": "^0.48.0",
|
|
35
|
-
"mocha": "12.0.0-beta-
|
|
35
|
+
"mocha": "12.0.0-beta-10",
|
|
36
36
|
"testdouble": "^3.20.2",
|
|
37
37
|
"typescript": "^5.9.3",
|
|
38
|
-
"typescript-eslint": "^8.
|
|
38
|
+
"typescript-eslint": "^8.57.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"eslint": ">=7.7.0"
|