Skip to content

Commit eb87732

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/code-view#122 - cloudscape-design/collection-hooks#136 - cloudscape-design/component-toolkit#200 - cloudscape-design/components#4308 - cloudscape-design/theming-core#148 - cloudscape-design/test-utils#114 Looking forward to your feedback.
1 parent ba35143 commit eb87732

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
@@ -6,14 +6,14 @@
66
"env": {
77
"node": true
88
},
9-
"plugins": ["unicorn", "header"],
9+
"plugins": ["unicorn", "@tony.ganchev/header"],
1010
"rules": {
1111
"unicorn/filename-case": "error",
1212
"curly": "error",
1313
"eqeqeq": "error",
1414
"no-return-await": "error",
1515
"require-await": "error",
16-
"header/header": [
16+
"@tony.ganchev/header/header": [
1717
"error",
1818
"line",
1919
[" 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
@@ -28,9 +28,9 @@
2828
"lodash": "^4.17.23"
2929
},
3030
"devDependencies": {
31+
"@tony.ganchev/eslint-plugin-header": "^3.3.1",
3132
"eslint": "^8.56.0",
3233
"eslint-config-prettier": "^9.1.0",
33-
"eslint-plugin-header": "3.1.1",
3434
"eslint-plugin-prettier": "^5.1.3",
3535
"eslint-plugin-unicorn": "^50.0.1",
3636
"husky": "^9.0.10",

0 commit comments

Comments
 (0)