Skip to content

Commit da39517

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/components#4308 - cloudscape-design/demos#243 Looking forward to your feedback.
1 parent 23ae428 commit da39517

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
const eslint = require('@eslint/js');
44
const tsEslint = require('typescript-eslint');
55
const unicornPlugin = require('eslint-plugin-unicorn');
6-
const headerPlugin = require('eslint-plugin-header');
6+
const headerPlugin = require('@tony.ganchev/eslint-plugin-header');
77
const prettierPlugin = require('eslint-plugin-prettier');
88
const prettierConfig = require('eslint-config-prettier');
99

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,6 +32,7 @@
3232
},
3333
"devDependencies": {
3434
"@testing-library/react": "^16.2.0",
35+
"@tony.ganchev/eslint-plugin-header": "^3.3.1",
3536
"@tsconfig/node18": "^18.2.2",
3637
"@types/babel__core": "^7.1.16",
3738
"@types/glob": "^9.0.0",
@@ -42,7 +43,6 @@
4243
"@vitest/coverage-istanbul": "^3.0.7",
4344
"eslint": "^9.39.1",
4445
"eslint-config-prettier": "^10.1.8",
45-
"eslint-plugin-header": "^3.1.1",
4646
"eslint-plugin-prettier": "^5.5.4",
4747
"eslint-plugin-unicorn": "^62.0.0",
4848
"husky": "^9.1.7",

0 commit comments

Comments
 (0)