-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.mjs
41 lines (39 loc) · 1.12 KB
/
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
import js from '@eslint/js';
import tseslint from 'typescript-eslint';
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
import globals from 'globals';
export default defineConfig([
js.configs.recommended,
...tseslint.configs.recommended,
{
languageOptions: {
ecmaVersion: 2020,
sourceType: 'module',
globals: {
...globals.node,
...globals.jasmine,
},
},
},
{
rules: {
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/triple-slash-reference': 'off',
'@typescript-eslint/no-empty-interface': 'off',
},
},
{
files: ['*.test.ts*'],
rules: {
'@typescript-eslint/no-non-null-assertion': 'off',
},
},
{ ignores: ['dist'] },
eslintPluginPrettierRecommended,
]);
/** @param config {import('eslint').Linter.FlatConfig} */
function defineConfig(config) {
return config;
}