-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc.cjs
36 lines (35 loc) · 951 Bytes
/
.eslintrc.cjs
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
// @ts-check
const { defineConfig } = require('eslint-define-config')
module.exports = defineConfig({
root: true,
parserOptions: {
sourceType: 'module',
ecmaVersion: 'latest',
},
overrides: [
{
extends: ['plugin:@typescript-eslint/recommended'],
plugins: ['@typescript-eslint', 'import', 'tsdoc'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
files: ['*.ts'],
rules: {
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-namespace': 'off',
'tsdoc/syntax': 'warn',
},
},
{
files: ['test', '__test__', '*.{spec,test}.ts'],
rules: {
'@typescript-eslint/no-var-requires': 'off',
'tsdoc/syntax': 'off',
},
},
],
})