-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.yml
43 lines (43 loc) · 1.04 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
env:
browser: true
es2021: true
extends:
- plugin:react/recommended
- airbnb
- prettier
- plugin:react/jsx-runtime
parser: "@typescript-eslint/parser"
parserOptions:
ecmaFeatures:
jsx: true
ecmaVersion: latest
sourceType: module
plugins:
- react
- "@typescript-eslint"
rules:
"@typescript-eslint/no-unused-vars": 1
"@typescript-eslint/consistent-type-definitions": ["error", "type"]
"react/jsx-filename-extension": [1, { "extensions": [".tsx"] }]
react/function-component-definition: 0
arrow-body-style: 0
"import/prefer-default-export": 0
no-restricted-exports: 0
no-unused-vars: 1
"react/jsx-props-no-spreading": 0
"no-shadow": "off"
"@typescript-eslint/no-shadow": ["error"]
"react/require-default-props": 0
"spaced-comment": warn
"object-curly-spacing": ["error", "always"]
"import/extensions":
- "error"
- "ignorePackages"
- "js": "never"
"jsx": "never"
"ts": "never"
"tsx": "never"
settings:
"import/resolver":
"node":
"extensions": [".js", ".jsx", ".ts", ".tsx"]