-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.yml
80 lines (80 loc) · 1.83 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
root: true
extends:
- eslint:recommended
- plugin:n/recommended
- airbnb
- airbnb/hooks
- plugin:@typescript-eslint/recommended
- plugin:@typescript-eslint/recommended-requiring-type-checking
- plugin:@typescript-eslint/strict
- airbnb-typescript
- plugin:react/jsx-runtime
- plugin:@tanstack/query/recommended
- plugin:prettier/recommended
parserOptions:
project:
- './tsconfig.json'
ecmaVersion: 2021
sourceType: module
env:
node: true
browser: false
rules:
import/extensions: 'off' # handled by TS
import/prefer-default-export: 'off'
import/order:
- error
- alphabetize:
order: asc
caseInsensitive: true
groups:
- builtin
- external
- internal
- unknown
- parent
- sibling
- index
- object
- type
newlines-between: never
pathGroups:
- pattern: '@app/**'
group: internal
pathGroupsExcludedImportTypes:
- builtin
n/no-missing-import: 'off' # handled by TS
'@typescript-eslint/return-await':
- error
- always
'@typescript-eslint/member-ordering':
- error
'@typescript-eslint/no-extraneous-class':
- error
- allowWithDecorator: true
'@typescript-eslint/no-empty-function':
- error
- allow:
- private-constructors
'@typescript-eslint/array-type':
- error
- default: array-simple
readonly: array-simple
react/function-component-definition:
- error
- namedComponents: arrow-function
unnamedComponents: arrow-function
overrides:
- files:
- packages/*/tests/*.ts
- '*.spec.ts'
- '*.test.ts'
- vite.config.ts
plugins:
- vitest
extends:
- plugin:vitest/recommended
rules:
import/no-extraneous-dependencies:
- error
- devDependencies: true