-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.mjs
42 lines (39 loc) · 994 Bytes
/
eslint.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// @ts-check
/*
* Copyright 2024 steadybit GmbH. All rights reserved.
*/
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
import globals from 'globals';
export default tseslint.config(
{
ignores: ['**/node_modules', '**/dist'],
files: ['**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx'],
},
eslint.configs.recommended,
...tseslint.configs.recommended,
{
languageOptions: {
globals: {
...globals.node,
},
},
rules: {
'@typescript-eslint/no-explicit-any': 0,
// Temporary disable - wait for fix -
// 'header/header': [
// 2,
// 'line',
// [
// ' SPDX-License-Identifier: MIT',
// {
// template: ` SPDX-FileCopyrightText: ${new Date().getFullYear()} Steadybit GmbH`,
// pattern: /^ SPDX-FileCopyrightText: \d{4} Steadybit GmbH/,
// },
// ],
// 1,
// { lineEndings: 'unix' },
// ],
},
}
);