Skip to content

Commit 8d6266e

Browse files
committed
chore: switch to @tony.ganchev/eslint-plugin-header
Hi, team, I noticed you are using _eslint-plugin-header_ with the schema-turn-off workaround to support ESLint 9. I forked _@tony.ganchev/eslint-plugin-header_ mid-2024 to address this issue 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/browser-test-tools#188 - 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/theming-core#148 - cloudscape-design/test-utils#114 Looking forward to your feedback.
1 parent c1e8e5b commit 8d6266e

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import { includeIgnoreFile } from '@eslint/compat';
55
import eslint from '@eslint/js';
6-
import headerPlugin from 'eslint-plugin-header';
6+
import headerPlugin from '@tony.ganchev/eslint-plugin-header';
77
import eslintPrettier from 'eslint-plugin-prettier/recommended';
88
import reactPlugin from 'eslint-plugin-react';
99
import unicornPlugin from 'eslint-plugin-unicorn';

package-lock.json

Lines changed: 11 additions & 11 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
@@ -19,6 +19,7 @@
1919
"prepare": "husky"
2020
},
2121
"devDependencies": {
22+
"@tony.ganchev/eslint-plugin-header": "^3.3.1",
2223
"@types/micromatch": "^4.0.1",
2324
"@types/node": "^20.0.0",
2425
"@types/react": "^16.14.8",
@@ -27,7 +28,6 @@
2728
"eslint": "^9.20.1",
2829
"@eslint/compat": "^1.2.9",
2930
"eslint-config-prettier": "^10.1.5",
30-
"eslint-plugin-header": "^3.1.1",
3131
"eslint-plugin-prettier": "^5.2.3",
3232
"eslint-plugin-react": "^7.31.11",
3333
"eslint-plugin-unicorn": "^60.0.0",

0 commit comments

Comments
 (0)