Skip to content

Commit acbcc8b

Browse files
committed
chore: switch to @tony.ganchev/eslint-plugin-header
Hi, team, I noticed you are using eslint-plugin-header on ESLint 8. I forked @tony.ganchev/eslint-plugin-header mid-2024 to add support for ESLint 9 and hoped it would be a temporary measure but since the original has not been updated for five years I decided to continue improving the new plugin and have been doing so for the last two years. Specific improvements include: - full JSON schema for validating the configuration. - fixed multiple bugs with the behavior of the plugin on Windows. - many other bug-fixes. - improved autofixing and error-reporting behavior. - added support for leading pragma comments before the header such as @jest-environment. I've sent PR proposals to other projects in the cloudscape-design space: - cloudscape-design/components#4308 - cloudscape-design/demos#243 Looking forward to your feedback.
1 parent eb52b37 commit acbcc8b

File tree

3 files changed

+14
-82
lines changed

3 files changed

+14
-82
lines changed

.eslintrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"ecmaVersion": 2018,
1414
"sourceType": "module"
1515
},
16-
"plugins": ["unicorn", "header", "@vitest"],
16+
"plugins": ["unicorn", "@tony.ganchev/header", "@vitest"],
1717
"rules": {
1818
"@typescript-eslint/ban-ts-comment": ["error", { "ts-expect-error": "allow-with-description" }],
1919
"@typescript-eslint/interface-name-prefix": "off",
@@ -26,7 +26,7 @@
2626
"eqeqeq": "error",
2727
"no-return-await": "error",
2828
"require-await": "error",
29-
"header/header": [
29+
"@tony.ganchev/header/header": [
3030
"error",
3131
"line",
3232
[" Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.", " SPDX-License-Identifier: Apache-2.0"]

package-lock.json

Lines changed: 11 additions & 79 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
"devDependencies": {
5252
"@cloudscape-design/build-tools": "github:cloudscape-design/build-tools#main",
5353
"@testing-library/react": "^11.2.7",
54+
"@tony.ganchev/eslint-plugin-header": "^3.3.1",
5455
"@types/react": "^16.14.21",
5556
"@types/react-dom": "^16.9.14",
5657
"@typescript-eslint/eslint-plugin": "^8.24.1",
@@ -59,7 +60,6 @@
5960
"@vitest/eslint-plugin": "^1.3.13",
6061
"eslint": "^8.57.1",
6162
"eslint-config-prettier": "^6.15.0",
62-
"eslint-plugin-header": "3.1.0",
6363
"eslint-plugin-prettier": "^3.4.1",
6464
"eslint-plugin-react": "^7.27.1",
6565
"eslint-plugin-react-hooks": "^4.3.0",

0 commit comments

Comments
 (0)