Skip to content

Commit 07121d8

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 Looking forward to your feedback.
1 parent 2eb3bd5 commit 07121d8

File tree

3 files changed

+15
-14
lines changed

3 files changed

+15
-14
lines changed

.eslintrc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"jsx": true
1414
}
1515
},
16-
"plugins": ["react-hooks", "react", "header", "@eslint-react/eslint-plugin", "eslint-plugin-simple-import-sort", "eslint-plugin-unused-imports"],
16+
"plugins": ["react-hooks", "react", "@tony.ganchev/header", "@eslint-react/eslint-plugin", "eslint-plugin-simple-import-sort", "eslint-plugin-unused-imports"],
1717
"rules": {
1818
"@typescript-eslint/interface-name-prefix": "off",
1919
"@typescript-eslint/no-explicit-any": "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: MIT-0"]
@@ -54,7 +54,7 @@
5454
{
5555
"files": ["*.json"],
5656
"rules": {
57-
"header/header": "off"
57+
"@tony.ganchev/header/header": "off"
5858
}
5959
},
6060
{

package-lock.json

Lines changed: 11 additions & 10 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
@@ -40,6 +40,7 @@
4040
"@cloudscape-design/theming-runtime": "^1.0.0",
4141
"@eslint-react/eslint-plugin": "^1.16.1",
4242
"@svgr/webpack": "^8.1.0",
43+
"@tony.ganchev/eslint-plugin-header": "^3.3.1",
4344
"@types/jest": "^29.5.14",
4445
"@types/lodash": "^4.14.184",
4546
"@types/node": "^20.16.8",
@@ -57,7 +58,6 @@
5758
"date-fns": "^4.1.0",
5859
"eslint": "^8.22.0",
5960
"eslint-config-prettier": "^10.0.2",
60-
"eslint-plugin-header": "^3.1.1",
6161
"eslint-plugin-prettier": "^5.2.3",
6262
"eslint-plugin-react": "^7.30.1",
6363
"eslint-plugin-react-hooks": "^4.6.0",

0 commit comments

Comments
 (0)