This repository has been archived by the owner on Aug 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
66 lines (66 loc) · 1.54 KB
/
.eslintrc.js
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
module.exports = {
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"react",
"@typescript-eslint"
],
"rules": {
"react/function-component-definition": [2, { "namedComponents": "function-declaration" }],
"react/no-array-index-key": [2],
"react/no-unstable-nested-components": [2],
"react/no-unused-prop-types": [2],
"react/no-children-prop": [0],
"react/jsx-curly-newline": [
2,
{
multiline: "consistent",
singleline: "consistent"
}
],
"react/jsx-indent": [2, "tab", {checkAttributes: false, indentLogicalExpressions: false}],
"react/jsx-indent-props": [2, "tab"],
"react/jsx-no-useless-fragment": [1],
"react/jsx-one-expression-per-line": [2],
"react/jsx-pascal-case": [1],
"react/jsx-props-no-multi-spaces": [1],
"react/jsx-tag-spacing": [1],
"react/prop-types": [0],
"react/jsx-wrap-multilines": [
1,
{
declaration: "parens-new-line",
assignment: "parens-new-line",
return: "parens-new-line",
arrow: "parens-new-line",
condition: "parens-new-line",
logical: "parens-new-line",
prop: "parens-new-line",
}
]
},
"settings": {
"react": {
"createClass": "createReactClass",
"pragma": "React",
"fragment": "Fragment",
"version": "detect",
"flowVersion": "0.53"
},
}
}