This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yaml
55 lines (49 loc) · 1.61 KB
/
.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
44
45
46
47
48
49
50
51
52
53
54
55
root: true
parser: "@typescript-eslint/parser"
parserOptions:
sourceType: module
plugins:
- "@typescript-eslint"
- react-hooks
extends:
- problems
- "plugin:@typescript-eslint/eslint-recommended"
- "plugin:@typescript-eslint/recommended"
- plugin:react/recommended
- plugin:import/errors
- plugin:import/warnings
- plugin:prettier/recommended
env:
amd: true
browser: true
settings:
react:
version: detect
import/resolver:
node:
extensions:
- .ts
- .tsx
- .js
- .jsx
rules:
no-fallthrough: off
no-undef-init: off
prefer-rest-params: off
eqeqeq: [2, "smart"]
"@typescript-eslint/explicit-function-return-type": off
"@typescript-eslint/no-explicit-any": off
"@typescript-eslint/no-var-requires": off
"@typescript-eslint/ban-ts-ignore": off
"@typescript-eslint/ban-ts-comment": off
"@typescript-eslint/ban-types": off
"@typescript-eslint/interface-name-prefix": off
"@typescript-eslint/no-empty-interface": off
"@typescript-eslint/no-empty-function": off
"no-use-before-define": off
"@typescript-eslint/no-use-before-define": [2, {"functions": false}]
"@typescript-eslint/no-unused-vars": [2, {vars: "all", args: "after-used", argsIgnorePattern: "^_"}]
"@typescript-eslint/consistent-type-assertions": [2, {assertionStyle: "as", objectLiteralTypeAssertions: "allow-as-parameter"}]
import/order: [2, {newlines-between: "always-and-inside-groups", alphabetize: {order: "asc"}, groups: ["builtin", "external", "internal", "parent", "sibling", "index", "unknown"]}]
react-hooks/rules-of-hooks: error
react-hooks/exhaustive-deps: warn