Skip to content

Commit 247b268

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/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/jest-preset#58 - cloudscape-design/test-utils#114 - cloudscape-design/theming-core#148 Looking forward to your feedback.
1 parent a957ff0 commit 247b268

File tree

3 files changed

+13
-16
lines changed

3 files changed

+13
-16
lines changed

eslint.config.mjs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@ import { includeIgnoreFile } from '@eslint/compat';
66
import tseslint from 'typescript-eslint';
77
import eslintPrettier from 'eslint-plugin-prettier/recommended';
88
import unicornPlugin from 'eslint-plugin-unicorn';
9-
import headerPlugin from 'eslint-plugin-header';
10-
11-
// https://github.com/Stuk/eslint-plugin-header/issues/57
12-
headerPlugin.rules.header.meta.schema = false;
9+
import headerPlugin from '@tony.ganchev/eslint-plugin-header';
1310

1411
export default tseslint.config(
1512
includeIgnoreFile(path.resolve('.gitignore')),

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
@@ -32,11 +32,11 @@
3232
"@eslint/compat": "^1.2.6",
3333
"@eslint/js": "^9.20.0",
3434
"@testing-library/jest-dom": "^6.6.3",
35+
"@tony.ganchev/eslint-plugin-header": "^3.3.1",
3536
"@typescript-eslint/eslint-plugin": "^8.24.1",
3637
"@vitest/coverage-istanbul": "^4.0.10",
3738
"eslint": "^9.20.1",
3839
"eslint-config-prettier": "^10.1.8",
39-
"eslint-plugin-header": "^3.1.1",
4040
"eslint-plugin-prettier": "^5.5.4",
4141
"eslint-plugin-unicorn": "^57.0.0",
4242
"husky": "^9.1.7",

0 commit comments

Comments
 (0)