-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.mjs
39 lines (38 loc) · 1.09 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
import js from '@eslint/js';
import typescript from '@typescript-eslint/eslint-plugin';
import typescriptParser from '@typescript-eslint/parser';
import prettier from 'eslint-config-prettier';
import eslintPluginPrettier from 'eslint-plugin-prettier';
import globals from "globals"
export default [
{
ignores: ["dist/"],
},
js.configs.recommended,
{
files: ['**/*.ts', '**/*.tsx'],
plugins: {
'@typescript-eslint': typescript,
'prettier': eslintPluginPrettier,
},
languageOptions: {
parser: typescriptParser,
parserOptions: {
project: ['./tsconfig.json'],
},
globals: {
...globals.node,
...globals.jest
}
},
rules: {
...typescript.configs['recommended'].rules,
...typescript.configs['recommended-requiring-type-checking'].rules,
...prettier.rules,
...eslintPluginPrettier.configs.recommended.rules,
'@typescript-eslint/no-unused-vars': 'warn',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
},
},
];