-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
60 lines (56 loc) · 1.4 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// eslint-disable-next-line unicorn/prefer-module
module.exports = {
extends: ['@wikodit/eslint-config-typescript/configs/recommended'],
parserOptions: {
project: './tsconfig.json',
tsconfigRootDir: '.',
},
rules: {
/** Those rules does not work correctly atm */
'@typescript-eslint/no-invalid-this': 'off',
'unicorn/expiring-todo-comments': 'off',
'@typescript-eslint/quotes': 'off', // + prettier does the work
/** Better */
'@typescript-eslint/consistent-type-imports': [
'error',
{
prefer: 'type-imports',
fixStyle: 'inline-type-imports',
},
],
/** Useless for typescript */
'jsdoc/require-param': 0,
'jsdoc/require-returns': 0,
'jsdoc/newline-after-description': 0,
'jsdoc/check-tag-names': ['warn', { definedTags: ['link'] }],
/** Overrides */
'unicorn/filename-case': 0,
'unicorn/prevent-abbreviations': [
'error',
{
allowList: {
Param: true,
Req: true,
Res: true,
Props: true,
Args: true,
args: true,
Env: true,
env: true,
},
},
],
},
overrides: [
{
files: ['**/*'],
rules: {
// Too slow
'import/no-cycle': 'off',
'@typescript-eslint/no-misused-promises': 'off',
// Use VSCode prettier
'prettier/prettier': 'off',
},
},
],
};