Skip to content

Commit f3f2443

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/collection-hooks#136 - cloudscape-design/component-toolkit#200 - cloudscape-design/components#4308 - cloudscape-design/demos#243 Looking forward to your feedback.
1 parent 953bd53 commit f3f2443

File tree

3 files changed

+1121
-1453
lines changed

3 files changed

+1121
-1453
lines changed

eslint.config.mjs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,13 @@
22
// SPDX-License-Identifier: Apache-2.0
33
import { includeIgnoreFile } from '@eslint/compat';
44
import eslint from '@eslint/js';
5-
import headerPlugin from 'eslint-plugin-header';
5+
import headerPlugin from '@tony.ganchev/eslint-plugin-header';
66
import eslintPrettier from 'eslint-plugin-prettier/recommended';
77
import unicornPlugin from 'eslint-plugin-unicorn';
88
import globals from 'globals';
99
import path from 'node:path';
1010
import tsEslint from 'typescript-eslint';
1111

12-
// https://github.com/Stuk/eslint-plugin-header/issues/57
13-
headerPlugin.rules.header.meta.schema = false;
14-
1512
export default tsEslint.config(
1613
includeIgnoreFile(path.resolve('.gitignore')),
1714
eslint.configs.recommended,

0 commit comments

Comments
 (0)