Skip to content

Commit cb6475c

Browse files
committed
fix eslint error because of using any type
1 parent dc69329 commit cb6475c

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

eslint.config.ts

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import path from 'node:path';
22
import { globalIgnores } from 'eslint/config';
33
import jest from 'eslint-plugin-jest';
4+
import type { ESLint } from 'eslint';
45
import licenseHeader from 'eslint-plugin-license-header';
56
import prettierRecommended from 'eslint-plugin-prettier/recommended';
67
import testingLibrary from 'eslint-plugin-testing-library';
@@ -52,20 +53,14 @@ const config = tsEslint.config([
5253
js.configs.recommended,
5354
compat.extends('eslint-config-shakacode'),
5455
{
55-
files: [
56-
'node_package/src/**/*.ts',
57-
'node_package/src/**/*.tsx',
58-
],
56+
files: ['node_package/src/**/*.ts', 'node_package/src/**/*.tsx'],
5957
plugins: {
60-
'license-header': licenseHeader as any,
58+
'license-header': licenseHeader as ESLint.Plugin,
6159
},
6260
rules: {
6361
'license-header/header': [
6462
'error',
65-
[
66-
'/* Copyright (c) 2015–2025 ShakaCode, LLC',
67-
' SPDX-License-Identifier: MIT */',
68-
],
63+
['/* Copyright (c) 2015–2025 ShakaCode, LLC', ' SPDX-License-Identifier: MIT */'],
6964
],
7065
},
7166
},

0 commit comments

Comments
 (0)