-
Notifications
You must be signed in to change notification settings - Fork 19
/
eslint.config.mjs
32 lines (31 loc) · 995 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
import { defineConfig } from 'eslint-define-config';
import tsParser from '@typescript-eslint/parser';
import tsPlugin from '@typescript-eslint/eslint-plugin';
import prettierPlugin from 'eslint-plugin-prettier';
export default defineConfig([
{
files: ["src/**/*.ts"],
languageOptions: {
parser: tsParser,
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
experimentalDecorators: true,
},
},
plugins: {
'@typescript-eslint': tsPlugin,
'prettier': prettierPlugin,
},
rules: {
...tsPlugin.configs['recommended'].rules,
...prettierPlugin.configs['recommended'].rules,
'@typescript-eslint/camelcase': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-unused-vars': 'off',
},
ignores: ["dist/**", "node_modules/**"],
},
]);