-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
43 lines (43 loc) · 1.23 KB
/
.eslintrc.json
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
},
"parser": "@typescript-eslint/parser",
"extends": ["airbnb", "airbnb-typescript", "prettier"],
"plugins": ["react", "react-hooks", "prettier", "simple-import-sort"],
"ignorePatterns": ["dist"],
"parserOptions": {
"sourceType": "module",
"ecmaVersion": "latest",
"project": "./tsconfig.json"
},
"rules": {
"arrow-body-style": "off",
"import/extensions": "off",
"react/function-component-definition": [
2,
{
"namedComponents": "arrow-function",
"unnamedComponents": "arrow-function"
}
],
"import/no-extraneous-dependencies": "off",
"react/react-in-jsx-scope": "off",
"import/prefer-default-export": "off",
"react/jsx-props-no-spreading": "off",
"react/require-default-props": "off",
"@typescript-eslint/no-use-before-define": "off",
"react/no-unknown-property": ["error", { "ignore": ["css"] }],
"jsx-a11y/click-events-have-key-events": "off",
"@typescript-eslint/consistent-type-imports": [
"error",
{
"prefer": "type-imports",
"disallowTypeAnnotations": false
}
],
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error"
}
}