-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
99 lines (99 loc) · 2.42 KB
/
.eslintrc
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{
"env": {
"browser": true,
"es2021": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2018,
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module"
},
"extends": [
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:react-hooks/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:jsdoc/recommended",
"plugin:jsx-a11y/recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:baseui/recommended"
],
"rules": {
"@typescript-eslint/no-unused-vars": [
1,
{
"argsIgnorePattern": "^_"
}
],
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/consistent-type-imports": [
1,
{
"prefer": "type-imports"
}
],
"react/display-name": 1,
"react/jsx-first-prop-new-line": ["warn", "multiline"],
"jsx-a11y/anchor-is-valid": 0,
"jsdoc/require-param-type": 0,
"jsdoc/require-returns-type": 0,
"jsdoc/require-file-overview": 1,
"jsdoc/check-syntax": 1,
"jsdoc/check-indentation": 1,
"jsdoc/require-jsdoc": [
"warn",
{
"publicOnly": true,
"contexts": ["TSInterfaceDeclaration", "TSTypeAliasDeclaration", "TSEnumDeclaration"],
"require": {
"FunctionExpression": true,
"ClassDeclaration": true,
"MethodDefinition": true,
"ArrowFunctionExpression": true,
"ClassExpression": true
}
}
],
"import/newline-after-import": 1,
"import/no-named-as-default": 0,
"import/order": [
"warn",
{
"groups": ["builtin", "external", "internal", ["sibling", "parent", "index"], ["object"]],
"pathGroups": [
{
"pattern": "react",
"group": "external",
"position": "before"
},
{
"pattern": "./*.scss",
"group": "type",
"position": "after"
}
],
"pathGroupsExcludedImportTypes": ["react"],
"newlines-between": "never",
"warnOnUnassignedImports": true
}
]
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"typescript": {
"alwaysTryTypes": true,
"project": "./tsconfig.json"
}
},
"react": {
"version": "detect"
}
}
}