-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
42 lines (38 loc) · 1.44 KB
/
.eslintrc.yml
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
root: true
settings:
import/resolver:
typescript: true
node: true
ignorePatterns:
- 'build'
- 'vitest.config.ts'
plugins:
- '@typescript-eslint'
- 'prettier'
extends:
- 'eslint:recommended'
- 'plugin:@typescript-eslint/recommended-type-checked'
- 'plugin:@typescript-eslint/stylistic-type-checked'
- 'plugin:@typescript-eslint/strict-type-checked'
- 'plugin:import/typescript'
- 'plugin:prettier/recommended'
- 'plugin:jsdoc/recommended-typescript-error'
- 'plugin:vitest/legacy-all'
- 'love'
rules:
'@typescript-eslint/consistent-type-definitions': ['error', 'type']
'@typescript-eslint/non-nullable-type-assertion-style': 'off'
'@typescript-eslint/promise-function-async': 'off'
'@typescript-eslint/strict-boolean-expressions': ['error', allowNullableObject: true]
'@typescript-eslint/space-before-function-paren': 'off'
'@typescript-eslint/member-delimiter-style': 'off'
'import/no-default-export': 'error'
'import/no-unresolved': 'error'
'jsdoc/check-param-names': ['error', checkDestructured: false]
'jsdoc/require-hyphen-before-param-description': 'error'
'jsdoc/require-jsdoc': ['error', { 'require': { 'FunctionExpression': true, 'ArrowFunctionExpression': true } }]
'jsdoc/require-param': ['error', checkDestructured: false]
'jsdoc/require-returns': 'off'
'jsdoc/require-throws': 'error'
'jsdoc/tag-lines': ['error', 'any', startLines: 1]
'vitest/no-hooks': ['error', 'allow': ['afterEach']]