6
6
import eslint from '@eslint/js' ;
7
7
import tseslint from 'typescript-eslint' ;
8
8
9
- import header from 'eslint-plugin-header' ;
10
9
import mocha from 'eslint-plugin-mocha' ;
11
10
import simpleImportSort from 'eslint-plugin-simple-import-sort' ;
12
11
import unusedImports from 'eslint-plugin-unused-imports' ;
@@ -16,7 +15,9 @@ export default tseslint.config(
16
15
tseslint . configs . recommended ,
17
16
{
18
17
plugins : {
19
- header,
18
+ // Temporarily disabled until eslint-plugin-header is compatible with eslint 9:
19
+ // https://github.com/Stuk/eslint-plugin-header/issues/59
20
+ // header,
20
21
mocha,
21
22
simpleImportSort,
22
23
unusedImports,
@@ -28,18 +29,19 @@ export default tseslint.config(
28
29
] ,
29
30
rules : {
30
31
'@typescript-eslint/no-explicit-any' : 'off' ,
31
- 'header/header' : [
32
- 2 ,
33
- 'line' ,
34
- [
35
- {
36
- pattern : ' SPDX-FileCopyrightText: Copyright \\d{4} Dash0 Inc\\.' ,
37
- template : ` SPDX-FileCopyrightText: Copyright ${ new Date ( ) . getFullYear ( ) } Dash0 Inc.` ,
38
- } ,
39
- ' SPDX-License-Identifier: Apache-2.0' ,
40
- ] ,
41
- 2 ,
42
- ] ,
32
+ // Temporarily disabled until eslint-plugin-header is compatible with eslint 9:
33
+ // https://github.com/Stuk/eslint-plugin-header/issues/59
34
+ // 'header/header': [
35
+ // 2,
36
+ // 'line',
37
+ // [
38
+ // {
39
+ // pattern: ' SPDX-FileCopyrightText: Copyright \\d{4} Dash0 Inc\\.',
40
+ // template: ` SPDX-FileCopyrightText: Copyright ${new Date().getFullYear()} Dash0 Inc.`,
41
+ // },
42
+ // ' SPDX-License-Identifier: Apache-2.0',
43
+ // ],
44
+ // ],
43
45
'mocha/no-exclusive-tests' : 'error' ,
44
46
'no-case-declarations' : 'off' ,
45
47
'simpleImportSort/exports' : 'error' ,
0 commit comments