-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc.yaml
72 lines (64 loc) · 1.49 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
env:
browser: true
node: true
es6: true
extends:
- eslint:recommended
- plugin:@typescript-eslint/recommended
- plugin:@typescript-eslint/recommended-requiring-type-checking
- plugin:react/recommended
- plugin:import/recommended
- plugin:import/typescript
- plugin:@next/next/recommended
- prettier
plugins:
- "@typescript-eslint"
- react
- react-hooks
parser: "@typescript-eslint/parser"
parserOptions:
sourceType: module
project:
- "./tsconfig.json"
settings:
react:
version: detect
next:
rootDir: "packages/site"
rules:
no-console: off
"@typescript-eslint/unbound-method": off
"@typescript-eslint/no-unused-vars":
- warn
- argsIgnorePattern: ^_
varsIgnorePattern: ^_
caughtErrorsIgnorePattern: _
react-hooks/rules-of-hooks: error
react-hooks/exhaustive-deps: warn
react/display-name: off
react/prop-types: off
react/no-unknown-property: off
react/jsx-uses-react: off
react/react-in-jsx-scope: off
import/order:
- error
- alphabetize:
order: asc
newlines-between: always
import/no-unresolved: off
# https://github.com/typescript-eslint/typescript-eslint/issues/6538
"@typescript-eslint/no-misused-promises": off
ignorePatterns:
- "**/dist/*"
- "**/lib/*"
- "**/esm/*"
- "**/cjs/*"
- "**/pkg/*"
- "**/*.config.js"
- "**/*.setup.js"
overrides:
- files:
- "**/__tests__/**/*.[jt]s?(x)"
- "**/?(*.)+(spec|test).[jt]s?(x)"
rules:
react/react-in-jsx-scope: off