-
Notifications
You must be signed in to change notification settings - Fork 24
/
.eslintrc.cjs
34 lines (34 loc) · 1001 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
module.exports = {
env: {
es2021: true,
node: true,
},
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'],
overrides: [],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: ['@typescript-eslint', 'unused-imports', 'require-extensions'],
rules: {
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'unused-imports/no-unused-imports': 'error',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'no-empty': 'off',
'@typescript-eslint/no-empty-function': 'off',
'no-constant-condition': 'off',
'@typescript-eslint/no-non-null-asserted-optional-chain': 'off',
'unused-imports/no-unused-vars': [
'off',
{
vars: 'all',
varsIgnorePattern: '^_',
args: 'after-used',
argsIgnorePattern: '^_',
},
],
},
};