generated from hackforla/.github-hackforla-base-repo-template
-
-
Notifications
You must be signed in to change notification settings - Fork 61
/
.eslintrc.yaml
41 lines (41 loc) · 957 Bytes
/
.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
env:
browser: true
es2021: true
jest: true
node: true
extends:
- eslint:recommended
- plugin:@typescript-eslint/recommended
- plugin:react/recommended
- plugin:react/jsx-runtime
ignorePatterns:
- coverage
- data
- dist
- node_modules
parser: "@typescript-eslint/parser"
parserOptions:
ecmaFeatures:
jsx: true
ecmaVersion: latest
sourceType: module
plugins:
- "@typescript-eslint"
- react
rules:
# FIXME: Fix problems
"@typescript-eslint/ban-ts-comment":
- warn
- ts-expect-error: allow-with-description
# FIXME: Fix problems then remove this rule
"@typescript-eslint/ban-types": warn
# FIXME: Fix problems then remove this rule
"@typescript-eslint/no-explicit-any": warn
"@typescript-eslint/no-var-requires": warn
# FIXME: Fix problems then remove this rule
react/display-name: warn
# FIXME: Fix problems then remove this rule
react/prop-types: warn
settings:
react:
version: detect