-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
43 lines (43 loc) · 1.15 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
es2020: true
extends:
- airbnb
- prettier
- airbnb/hooks
- plugin:prettier/recommended
- plugin:react/recommended
- prettier/@typescript-eslint
- plugin:@typescript-eslint/recommended
parser: '@typescript-eslint/parser'
parserOptions:
ecmaFeatures:
jsx: true
ecmaVersion: 11
sourceType: module
plugins:
- react
- react-hooks
- import
- prettier
- '@typescript-eslint/eslint-plugin'
rules:
react/jsx-filename-extension: off
react/destructuring-assignment: off
react/prop-types: off # typescript does it
react/jsx-one-expression-per-line: off
react-hooks/exhaustive-deps: off
'@typescript-eslint/explicit-module-boundary-types': off
jsx-a11y/anchor-is-valid: warn
prettier/prettier: ["error", { "singleQuote": true, "trailingComma": "all" }]
import/extensions: off
import/prefer-default-export: off
import/no-unresolved: off # duplciate with typescript
jsx-a11y/label-has-associated-control: off
jsx-a11y/no-autofocus: off
'@typescript-eslint/ban-ts-comment': off
settings:
import/resolver:
node:
# paths: [components, lib, pages]
extensions: [".js", ".jsx", ".ts", ".tsx"]