-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
40 lines (40 loc) · 1.39 KB
/
.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
37
38
39
40
module.exports = {
overrides: [
{
parser: '@typescript-eslint/parser',
files: ['*.ts'],
parserOptions: {
project: ['./tsconfig.json'],
},
plugins: ['@typescript-eslint', 'prettier'],
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking'
],
env: {
node: true,
es2021: true,
},
rules: {
'prettier/prettier': ['error', { endOfLine: 'auto' }],
'@typescript-eslint/no-explicit-any': ['warn'],
'@typescript-eslint/no-unsafe-argument': ['warn'],
'brace-style': 'off',
'@typescript-eslint/brace-style': ['error', '1tbs', { allowSingleLine: true }],
'comma-spacing': 'off',
'@typescript-eslint/comma-spacing': ['error'],
'no-shadow': 'off',
'@typescript-eslint/no-shadow': ['error', { allow: ['err', 'resolve', 'reject'] }],
'object-curly-spacing': 'off',
'@typescript-eslint/object-curly-spacing': ['error', 'always'],
'default-param-last': 'off',
'@typescript-eslint/default-param-last': ['error'],
'dot-notation': 'off',
'@typescript-eslint/dot-notation': ['error'],
'@typescript-eslint/explicit-member-accessibility': ['error'],
'@typescript-eslint/no-misused-promises': ['error'],
},
},
],
root: true,
};