-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.mjs
35 lines (33 loc) · 1.04 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
import eslint from '@eslint/js';
import globals from 'globals';
import prettier from 'eslint-plugin-prettier/recommended';
import tseslint from 'typescript-eslint';
export default [
{
files: ['src', 'test']
},
{
ignores: ['test/register.js', 'test/browser/**/*.js']
},
eslint.configs.recommended,
...tseslint.configs.recommended,
{
languageOptions: {
globals: globals.node,
ecmaVersion: 2020,
sourceType: 'module'
},
rules: {
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-this-alias': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-wrapper-object-types': 'off',
'@typescript-eslint/no-unsafe-function-type': 'off',
'no-unused-vars': 'off',
'require-yield': 'off',
'prefer-const': 'off'
}
}
];