forked from cloudreve/frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yaml
43 lines (41 loc) · 983 Bytes
/
.eslintrc.yaml
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
extends:
- eslint:recommended
- plugin:react/recommended
- plugin:@typescript-eslint/recommended
parser: '@typescript-eslint/parser'
plugins:
- react
- react-hooks
- '@typescript-eslint'
parserOptions:
sourceType: module
ecmaVersion: 2020
ecmaFeatures:
jsx: true
env:
es6: true
browser: true
node: true
jest: true
settings:
react:
version: detect
ignorePatterns:
- node_modules
rules:
react/prop-types: 0
react-hooks/rules-of-hooks: "error"
# TODO: 修改添加deps后出现的死循环
react-hooks/exhaustive-deps: 0
'@typescript-eslint/explicit-function-return-type': 0
'@typescript-eslint/no-explicit-any': 0
'@typescript-eslint/camelcase': 0
'@typescript-eslint/no-non-null-assertion': 0
'@typescript-eslint/no-unused-vars': 0
overrides:
- files: ['*.js', '*.jsx']
rules:
'@typescript-eslint/camelcase': 0
- files: ['config/*.js', 'scripts/*.js']
rules:
'@typescript-eslint/no-var-requires': 0