@@ -3,7 +3,7 @@ import { FlatCompat } from '@eslint/eslintrc';
33import js from '@eslint/js' ;
44import typescriptEslint from '@typescript-eslint/eslint-plugin' ;
55import tsParser from '@typescript-eslint/parser' ;
6- import pluginHeader from 'eslint-plugin-header' ;
6+ import header from '@tony.ganchev/ eslint-plugin-header' ;
77import _import from 'eslint-plugin-import' ;
88import mocha from 'eslint-plugin-mocha' ;
99import simpleImportSort from 'eslint-plugin-simple-import-sort' ;
@@ -12,8 +12,6 @@ import globals from 'globals';
1212import path from 'node:path' ;
1313import { fileURLToPath } from 'node:url' ;
1414
15- pluginHeader . rules . header . meta . schema = false ;
16-
1715const __filename = fileURLToPath ( import . meta. url ) ;
1816const __dirname = path . dirname ( __filename ) ;
1917const compat = new FlatCompat ( {
@@ -44,7 +42,7 @@ export default [
4442 {
4543 plugins : {
4644 '@typescript-eslint' : typescriptEslint ,
47- pluginHeader ,
45+ header ,
4846 mocha,
4947 tsdoc,
5048 'simple-import-sort' : simpleImportSort ,
@@ -161,8 +159,7 @@ export default [
161159 ] ,
162160
163161 'jsx-quotes' : 'error' ,
164- // TODO https://github.com/Stuk/eslint-plugin-header/issues/57
165- // 'header/header': [2, 'src/header.js'],
162+ 'header/header' : [ 2 , 'src/header.js' ] ,
166163 'no-mixed-spaces-and-tabs' : 'off' ,
167164 'no-empty' : 'off' ,
168165 '@typescript-eslint/no-unsafe-function-type' : 'off' ,
0 commit comments