@tony.ganchev/eslint-plugin-header 3.3.1 → 3.3.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/README.md
CHANGED
|
@@ -58,12 +58,16 @@ dedicated section.
|
|
|
58
58
|
|
|
59
59
|
## Compatibility
|
|
60
60
|
|
|
61
|
-
The plugin supports ESLint 7 / 8 / 9 / 10
|
|
62
|
-
hierarchical config can be used.
|
|
61
|
+
The plugin supports **ESLint 7 / 8 / 9 / 10**. Both **flat** config and legacy,
|
|
62
|
+
**hierarchical** config can be used. We have a smoke-test running to confirm the
|
|
63
|
+
plugin works with the latest version of ESLint.
|
|
64
|
+
|
|
65
|
+
The plugin works with latest version of **oxlint** too. We have a smoke-test
|
|
66
|
+
running to confirm the plugin works with the latest version of oxlint.
|
|
63
67
|
|
|
64
68
|
The NPM package provides TypeScript type definitions and can be used with
|
|
65
69
|
TypeScript-based ESLint flat configuration without the need for `@ts-ignore`
|
|
66
|
-
statements.
|
|
70
|
+
statements. Smoke tests cover this support as well.
|
|
67
71
|
|
|
68
72
|
## Usage
|
|
69
73
|
|
package/lib/rules/header.js
CHANGED
|
@@ -898,15 +898,6 @@ const headerRule = {
|
|
|
898
898
|
},
|
|
899
899
|
fixable: "whitespace",
|
|
900
900
|
schema,
|
|
901
|
-
defaultOptions: [
|
|
902
|
-
/** @type {AllHeaderOptions} */
|
|
903
|
-
{
|
|
904
|
-
lineEndings: lineEndingOptions.os,
|
|
905
|
-
trailingEmptyLines: {
|
|
906
|
-
minimum: 1
|
|
907
|
-
}
|
|
908
|
-
}
|
|
909
|
-
],
|
|
910
901
|
messages: {
|
|
911
902
|
// messages customized for header validation.
|
|
912
903
|
headerLineMismatchAtPos:
|
|
@@ -98,7 +98,7 @@ const schema = Object.freeze({
|
|
|
98
98
|
type: "string",
|
|
99
99
|
enum: [lineEndingOptions.unix, lineEndingOptions.windows, lineEndingOptions.os],
|
|
100
100
|
description: "Line endings to use when aut-fixing the violations. Defaults to 'os' which means 'same as " +
|
|
101
|
-
|
|
101
|
+
"system'."
|
|
102
102
|
},
|
|
103
103
|
settings: {
|
|
104
104
|
type: "object",
|
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.2",
|
|
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",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"mocha": "12.0.0-beta-10",
|
|
36
36
|
"testdouble": "^3.20.2",
|
|
37
37
|
"typescript": "^5.9.3",
|
|
38
|
-
"typescript-eslint": "^8.57.
|
|
38
|
+
"typescript-eslint": "^8.57.1"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"eslint": ">=7.7.0"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../lib/rules/header.js"],"names":[],"mappings":";2BAsCa,iBAAiB;0BACjB,gBAAgB;wBAChB,cAAc;0BACd,gBAAgB;;;;;yBAIhB,IAAI,GAAG,MAAM;;;;;;;;;;aAOZ,MAAM,GAAG,MAAM;;;;;;;;;;;;yBAOhB,MAAM,GAAG,MAAM,GAAG,iBAAiB;;;;;0BAGnC,UAAU,GAAG,UAAU,EAAE;;;;;;+BAEzB,IAAI,GAAG,MAAM,GAAG,SAAS;;;;;6BAGzB;IAAE,WAAW,CAAC,EAAE,gBAAgB,CAAA;CAAE;;;;;0BAElC,OAAO,GAAG,MAAM;;;;;;;;;;UAOf,MAAM;;;;;;;;;;;;;;;iBASN,WAAW;;;;;;WACX,UAAU,EAAE;;;;;;;;;;;;cAQ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