Skip to content

Commit 5f2d2fe

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/board-components#401 - cloudscape-design/chart-components#185 - cloudscape-design/code-view#122 - cloudscape-design/collection-hooks#136 - cloudscape-design/component-toolkit#200 - cloudscape-design/components#4308 - cloudscape-design/demos#243 - cloudscape-design/global-styles#73 - cloudscape-design/jest-preset#58 - cloudscape-design/test-utils#114 - cloudscape-design/theming-core#148 Looking forward to your feedback.
1 parent 7f75562 commit 5f2d2fe

File tree

3 files changed

+14
-13
lines changed

3 files changed

+14
-13
lines changed

.eslintrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
"ecmaVersion": 2018,
66
"sourceType": "module"
77
},
8-
"plugins": ["@typescript-eslint", "unicorn", "header"],
8+
"plugins": ["@typescript-eslint", "unicorn", "@tony.ganchev/header"],
99
"rules": {
1010
"unicorn/filename-case": "error",
1111
"@typescript-eslint/explicit-module-boundary-types": "off",
1212
"@typescript-eslint/camelcase": "off",
1313
"@typescript-eslint/no-inferrable-types": "off",
1414
"curly": "error",
15-
"header/header": [
15+
"@tony.ganchev/header/header": [
1616
"error",
1717
"line",
1818
[" Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.", " SPDX-License-Identifier: Apache-2.0"]

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
@@ -41,6 +41,7 @@
4141
"webdriverio": "^9.24.0"
4242
},
4343
"devDependencies": {
44+
"@tony.ganchev/eslint-plugin-header": "^3.3.1",
4445
"@types/lodash": "^4.14.186",
4546
"@types/node": "^18.0.0",
4647
"@types/pixelmatch": "^5.2.4",
@@ -50,7 +51,6 @@
5051
"@vitest/coverage-istanbul": "^3.0.7",
5152
"eslint": "^8.26.0",
5253
"eslint-config-prettier": "^8.5.0",
53-
"eslint-plugin-header": "^3.1.1",
5454
"eslint-plugin-prettier": "^4.2.1",
5555
"eslint-plugin-unicorn": "^44.0.2",
5656
"glob": "^10.5.0",

0 commit comments

Comments
 (0)