diff --git a/eslint.config.mjs b/eslint.config.mjs index 829b9db..b535e3b 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -1,12 +1,10 @@ import js from "@eslint/js"; import _import from "eslint-plugin-import"; -import header from "eslint-plugin-header"; +import header from "@tony.ganchev/eslint-plugin-header"; import typescriptEslint from "@typescript-eslint/eslint-plugin"; import tsParser from "@typescript-eslint/parser"; import globals from "globals"; -header.rules.header.meta.schema = false; - export default [ { ignores: ["**/*.config.js", "**/dist", "**/node_modules"], @@ -73,14 +71,20 @@ export default [ "header/header": [ 1, - "block", - [ - "!", - " * Copyright (c) Microsoft Corporation. All rights reserved.", - " * Licensed under the MIT License.", - " ", - ], - 1, + { + header: { + commentType: "block", + lines: [ + "!", + " * Copyright (c) Microsoft Corporation. All rights reserved.", + " * Licensed under the MIT License.", + " ", + ], + }, + trailingEmptyLines: { + minimum: 1, + }, + }, ], }, }, diff --git a/package-lock.json b/package-lock.json index 746d697..fcfe110 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,6 +10,7 @@ "license": "MIT", "devDependencies": { "@playwright/test": "^1.58.1", + "@tony.ganchev/eslint-plugin-header": "^3.2.4", "@types/node": "^25.2.1", "@typescript-eslint/eslint-plugin": "^8.54.0", "@typescript-eslint/parser": "^8.54.0", @@ -18,7 +19,6 @@ "esbuild-plugin-inline-import": "^1.1.0", "eslint": "^9.39.2", "eslint-config-prettier": "^10.1.8", - "eslint-plugin-header": "^3.1.1", "eslint-plugin-import": "^2.32.0", "playwright": "^1.58.1", "prettier": "^3.8.1", @@ -1749,6 +1749,16 @@ "dev": true, "license": "MIT" }, + "node_modules/@tony.ganchev/eslint-plugin-header": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/@tony.ganchev/eslint-plugin-header/-/eslint-plugin-header-3.2.4.tgz", + "integrity": "sha512-zqMKTW/KQmqKGINkhwEPoJFcJ0ewUkUAmvzHLB5N+n/6bsk7D/xkQ50VhUakG2P4JHHtqsncaXrPxgSeuBPmOw==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "eslint": ">=7.7.0" + } + }, "node_modules/@tootallnate/quickjs-emscripten": { "version": "0.23.0", "resolved": "https://registry.npmjs.org/@tootallnate/quickjs-emscripten/-/quickjs-emscripten-0.23.0.tgz", @@ -3332,16 +3342,6 @@ "ms": "^2.1.1" } }, - "node_modules/eslint-plugin-header": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-header/-/eslint-plugin-header-3.1.1.tgz", - "integrity": "sha512-9vlKxuJ4qf793CmeeSrZUvVClw6amtpghq3CuWcB5cUNnWHQhgcqy5eF8oVKFk1G3Y/CbchGfEaw3wiIJaNmVg==", - "dev": true, - "license": "MIT", - "peerDependencies": { - "eslint": ">=7.7.0" - } - }, "node_modules/eslint-plugin-import": { "version": "2.32.0", "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.32.0.tgz", diff --git a/package.json b/package.json index b9db9f4..61c21fa 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,7 @@ "homepage": "https://github.com/microsoft/abledom#readme", "devDependencies": { "@playwright/test": "^1.58.1", + "@tony.ganchev/eslint-plugin-header": "^3.2.4", "@types/node": "^25.2.1", "@typescript-eslint/eslint-plugin": "^8.54.0", "@typescript-eslint/parser": "^8.54.0", @@ -50,7 +51,6 @@ "esbuild-plugin-inline-import": "^1.1.0", "eslint": "^9.39.2", "eslint-config-prettier": "^10.1.8", - "eslint-plugin-header": "^3.1.1", "eslint-plugin-import": "^2.32.0", "playwright": "^1.58.1", "prettier": "^3.8.1",