-
Notifications
You must be signed in to change notification settings - Fork 1
/
eslint.config.mjs
43 lines (42 loc) · 1.27 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
42
43
import typescriptParser from '@typescript-eslint/parser';
import importPlugin from 'eslint-plugin-import';
export default [
{
files: ['*.ts', '*.js'],
ignorePatterns: ['**/dist/**'],
languageOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
globals: {
es2021: true,
node: true,
},
parser: typescriptParser,
},
plugins: {
'@typescript-eslint': typescriptParser,
import: importPlugin,
},
rules: {
indent: ['error', 4],
'linebreak-style': ['error', 'unix'],
semi: ['error', 'always'],
'no-unused-vars': 'off',
'no-async-promise-executor': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-var-requires': 'off',
'object-curly-spacing': ['error', 'always'],
},
settings: {
'import/parsers': {
'@typescript-eslint/parser': ['.ts'],
},
'import/resolver': {
typescript: {
alwaysTryTypes: true,
},
},
},
},
];