-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
44 lines (44 loc) · 1.15 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
parser: "@typescript-eslint/parser"
plugins:
- "@typescript-eslint"
- "prettier"
- "react"
- "react-hooks"
extends:
- "eslint:recommended"
- "plugin:react/recommended"
- "plugin:@typescript-eslint/recommended"
- "plugin:@typescript-eslint/eslint-recommended"
- "plugin:prettier/recommended"
- "prettier"
settings:
react:
version: detect
env:
browser: true
node: true
es6: true
parserOptions:
sourceType: module
ecmaFeatures:
jsx: true
project: "./app/tsconfig.json"
rules:
"react/prop-types": off
"react/react-in-jsx-scope": off
"react-hooks/rules-of-hooks": error
"@typescript-eslint/no-floating-promises": error
"@typescript-eslint/no-unnecessary-qualifier": error
"@typescript-eslint/explicit-function-return-type": off
"@typescript-eslint/promise-function-async": error
"@typescript-eslint/require-await": error
"@typescript-eslint/ban-ts-ignore": off
"@typescript-eslint/no-use-before-define":
- error
- functions: false
classes: false
enums: true
variables: true
typedefs: true
"@typescript-eslint/explicit-module-boundary-types": off
"@typescript-eslint/no-namespace": off