diff --git a/eslint.config.mjs b/eslint.config.mjs index f3c268fb2..5321a987b 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -1,5 +1,5 @@ import typescriptEslint from '@typescript-eslint/eslint-plugin'; -import header from 'eslint-plugin-header'; +import header from '@tony.ganchev/eslint-plugin-header'; import jestFormatting from 'eslint-plugin-jest-formatting'; import prettier from 'eslint-plugin-prettier'; import unicorn from 'eslint-plugin-unicorn'; @@ -12,8 +12,6 @@ import { FlatCompat } from '@eslint/eslintrc'; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); -// workaround: https://github.com/Stuk/eslint-plugin-header/issues/57#issuecomment-2378485611 -header.rules.header.meta.schema = false; const compat = new FlatCompat({ baseDirectory: __dirname, recommendedConfig: js.configs.recommended, diff --git a/package.json b/package.json index 4bfecbe4e..9c85f0cec 100644 --- a/package.json +++ b/package.json @@ -97,6 +97,7 @@ "@smithy/types": "^3.7.2", "@swc/core": "^1.10.12", "@testcontainers/localstack": "^11.11.0", + "@tony.ganchev/eslint-plugin-header": "^3.3.0", "@trivago/prettier-plugin-sort-imports": "^4.3.0", "@types/better-sqlite3": "7.6.3", "@types/express": "^4.17.21", @@ -119,7 +120,6 @@ "copyfiles": "^2.4.1", "eslint": "^9.36.0", "eslint-config-prettier": "^10.1.8", - "eslint-plugin-header": "^3.1.1", "eslint-plugin-jest-formatting": "^3.1.0", "eslint-plugin-prettier": "^5.2.3", "eslint-plugin-unicorn": "^56.0.1", diff --git a/yarn.lock b/yarn.lock index 8d2e026a9..cfbdc2358 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6717,6 +6717,11 @@ dependencies: testcontainers "^11.11.0" +"@tony.ganchev/eslint-plugin-header@^3.3.0": + version "3.3.0" + resolved "https://registry.yarnpkg.com/@tony.ganchev/eslint-plugin-header/-/eslint-plugin-header-3.3.0.tgz#723ce34b15d8f19f822fdee23ead299c4339b2d8" + integrity sha512-yWP5n7GXWU2NdOJuQtGSKiRm4i+YwqSjNqHMCOscnzHiv9rI7PIap7DiHz4E4ajWa0MdQICxnwKrk5isvZFcjw== + "@tootallnate/once@2": version "2.0.0" resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-2.0.0.tgz#f544a148d3ab35801c1f633a7441fd87c2e484bf" @@ -9797,11 +9802,6 @@ eslint-config-prettier@^10.1.8: resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-10.1.8.tgz#15734ce4af8c2778cc32f0b01b37b0b5cd1ecb97" integrity sha512-82GZUjRS0p/jganf6q1rEO25VSoHH0hKPCTrgillPjdI/3bgBhAE1QzHrHTizjpRvy6pGAvKjDJtk2pF9NDq8w== -eslint-plugin-header@^3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/eslint-plugin-header/-/eslint-plugin-header-3.1.1.tgz#6ce512432d57675265fac47292b50d1eff11acd6" - integrity sha512-9vlKxuJ4qf793CmeeSrZUvVClw6amtpghq3CuWcB5cUNnWHQhgcqy5eF8oVKFk1G3Y/CbchGfEaw3wiIJaNmVg== - eslint-plugin-jest-formatting@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/eslint-plugin-jest-formatting/-/eslint-plugin-jest-formatting-3.1.0.tgz#b26dd5a40f432b642dcc880021a771bb1c93dcd2"