-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
52 lines (46 loc) · 1.61 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
43
44
45
46
47
48
49
50
51
52
root: true
parser: '@typescript-eslint/parser'
parserOptions:
project: true
settings:
import/resolver:
typescript:
project:
- './tsconfig.json'
- './packages/*/tsconfig.json'
ignorePatterns:
- 'build'
- 'vitest.config.ts'
plugins:
- '@typescript-eslint'
- 'prettier'
- 'import'
extends:
- 'eslint:recommended'
- 'plugin:@typescript-eslint/recommended-type-checked'
- 'plugin:@typescript-eslint/stylistic-type-checked'
- 'plugin:@typescript-eslint/strict-type-checked'
- 'standard-with-typescript'
- 'plugin:promise/recommended'
- 'plugin:import/recommended'
- 'plugin:import/typescript'
- 'plugin:n/recommended'
- 'plugin:prettier/recommended'
- 'plugin:jsdoc/recommended-typescript-error'
- 'plugin:vitest/all'
rules:
'@typescript-eslint/consistent-type-definitions': ['error', 'type']
'@typescript-eslint/strict-boolean-expressions': ['error', allowNullableObject: true]
'@typescript-eslint/promise-function-async': 'off'
'import/no-default-export': 'error'
'import/no-unresolved': 'error'
# disabled since it's already covered by the 'import/no-unresolved'
'n/no-missing-import': 'off'
'jsdoc/require-jsdoc': ['error', { 'require': { 'FunctionExpression': true, 'ArrowFunctionExpression': true } }]
'jsdoc/require-returns': 'off'
'jsdoc/require-throws': 'error'
'jsdoc/require-param': ['error', checkDestructured: false]
'jsdoc/check-param-names': ['error', checkDestructured: false]
'jsdoc/tag-lines': ['error', 'any', startLines: 1]
'jsdoc/require-hyphen-before-param-description': 'error'
'vitest/no-hooks': ['error', 'allow': ['afterEach']]