-
Notifications
You must be signed in to change notification settings - Fork 7
/
.eslintrc.yml
49 lines (49 loc) · 1.22 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
extends:
- "airbnb"
- "airbnb-typescript"
- "plugin:@typescript-eslint/eslint-recommended"
- "plugin:@typescript-eslint/recommended"
- "plugin:react/recommended"
- "plugin:react-hooks/recommended"
- "prettier"
parser: "@typescript-eslint/parser"
parserOptions:
project:
- "tsconfig.json"
plugins:
- "@typescript-eslint"
- "react-hooks"
root: true
rules:
"@typescript-eslint/no-floating-promises":
- "error"
- ignoreIIFE: true
ignoreVoid: true
"@typescript-eslint/no-inferrable-types": "off"
"@typescript-eslint/no-unused-vars":
- "warn"
- argsIgnorePattern: _
varsIgnorePattern: _
arrow-body-style: "off"
import/prefer-default-export: "off"
no-console: "off"
no-void: "off"
prefer-destructuring: "off"
prefer-template: "off"
react/destructuring-assignment: "off"
react/function-component-definition:
- "error"
- namedComponents: "function-declaration"
unnamedComponents: "function-expression"
react/no-unstable-nested-components:
- "error"
- allowAsProps: true
react/prop-types: "off"
react/react-in-jsx-scope: "off"
react/require-default-props: "off"
spaced-comment:
- "error"
- "always"
- markers:
- "/"
- "**"