-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.mjs
50 lines (49 loc) · 1009 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
43
44
45
46
47
48
49
50
import globals from 'globals';
import tsLint from 'typescript-eslint';
import prettierPlugin from 'eslint-plugin-prettier/recommended';
export default tsLint.config(
{
plugins: {
'@typescript-eslint': tsLint.plugin,
},
},
{
files: ['**/*.{ts,js,mjs}'],
},
{
ignores: ['dist', 'node_modules', 'coverage'],
},
{
languageOptions: {
globals: {
...globals.es2025,
},
parserOptions: {
project: [
'tsconfig.json',
'tsconfig.eslint.json',
'tsconfig.test.json',
'./example/tsconfig.json',
],
},
},
},
...tsLint.configs.recommended,
prettierPlugin,
{
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'prettier/prettier': [
'error',
{
trailingComma: 'all',
tabWidth: 2,
useTabs: false,
semi: true,
singleQuote: true,
experimentalTernaries: false,
},
],
},
},
);