This repository has been archived by the owner on Jan 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.yml
59 lines (59 loc) · 1.75 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
50
51
52
53
54
55
56
57
58
59
env:
browser: true
es2021: true
node: true
ignorePatterns:
- 'gatsby-ssr.js'
extends:
- plugin:react/recommended
- plugin:@typescript-eslint/recommended
- xo
- xo-react/space
- xo-typescript/space
- prettier
- plugin:prettier/recommended
# - eslint:recommended
# - plugin:react-hooks/recommended
# - plugin:import/errors
# - plugin:import/warnings
# - plugin:unicorn/recommended
plugins:
- '@typescript-eslint'
- react
- react-hooks
parser: '@typescript-eslint/parser'
parserOptions:
project: './tsconfig.json'
tsconfigRootDir: '.'
ecmaVersion: 2021
rules:
'@typescript-eslint/explicit-module-boundary-types': 0
'@typescript-eslint/no-confusing-void-expression': 0
'@typescript-eslint/consistent-type-assertions': 1
'@typescript-eslint/restrict-plus-operands': 1
'@typescript-eslint/no-empty-function': 1
'react-hooks/rules-of-hooks': 1
'@typescript-eslint/no-explicit-any': 1
'@typescript-eslint/ban-ts-comment': 1
'react/jsx-pascal-case': 1
'@typescript-eslint/no-implicit-any-catch': 1
'@typescript-eslint/no-floating-promises': 1
'react/no-array-index-key': 1
'@typescript-eslint/prefer-nullish-coalescing': 1
'@typescript-eslint/restrict-template-expressions': 1
'react/boolean-prop-naming': 1
'@typescript-eslint/no-unused-expressions': 1
'no-empty-pattern': 1
'react/prop-types': 1
'react/function-component-definition': 1
'react/display-name': 1
'react/no-this-in-sfc': 1
'no-var': 1
'@typescript-eslint/ban-types': 1
'@typescript-eslint/no-unsafe-assignment': 0
'@typescript-eslint/no-unsafe-call': 0
'@typescript-eslint/no-unsafe-member-access': 0
'no-await-in-loop': 0
'@typescript-eslint/no-unsafe-return': 0
'@typescript-eslint/no-unused-vars': 1
'capitalized-comments': 1