-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.mjs
32 lines (30 loc) · 947 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
// @ts-check
import eslint from '@eslint/js';
import jest from 'eslint-plugin-jest';
import prettier from 'eslint-plugin-prettier';
import tslint from 'typescript-eslint';
export default tslint.config(
{
ignores: ['tools/**', '**/dist/**', '**/example/**'],
},
eslint.configs.recommended,
...tslint.configs.recommendedTypeChecked,
{
languageOptions: {
parserOptions: {
project: './tsconfig-eslint.json',
tsconfigRootDir: import.meta.dirname,
},
},
plugins: { jest, prettier },
rules: {
'@typescript-eslint/require-await': 'off',
'@typescript-eslint/no-unsafe-argument': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/restrict-template-expressions': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/no-base-to-string': 'off',
},
},
);