-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
73 lines (73 loc) · 2.5 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
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
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": [
"react"
],
"rules": {
"array-bracket-spacing": ["error", "never"],
"arrow-parens": ["error", "as-needed"],
"brace-style": ["error", "stroustrup"],
"comma-dangle": ["error", "always-multiline"],
"comma-spacing": ["error", {"before": false, "after": true}],
"id-length": ["error", {"min": 2, "properties": "always", "exceptions": ["i", "j", "k", "n", "_", "t", "p", "x", "y"]}],
"indent": ["error", 2, {"ignoredNodes": ["JSXElement", "JSXElement > *", "JSXAttribute", "JSXIdentifier", "JSXNamespacedName", "JSXMemberExpression", "JSXSpreadAttribute", "JSXExpressionContainer", "JSXOpeningElement", "JSXClosingElement", "JSXText", "JSXEmptyExpression", "JSXSpreadChild"]}],
"key-spacing": ["error", {"beforeColon": false, "afterColon": true, "align": "value"}],
"jsx-quotes": ["error", "prefer-double"],
"no-trailing-spaces": "error",
"no-unused-vars": ["error", {"varsIgnorePattern": "_+", "argsIgnorePattern": "_+"}],
"object-curly-spacing": ["error", "never"],
"object-shorthand": ["error"],
"padded-blocks": ["error", "never"],
"quotes": ["error", "single", {
"avoidEscape": true,
"allowTemplateLiterals": true
}],
"react/display-name": "off",
"react/jsx-closing-bracket-location": ["error", {
"nonEmpty": "tag-aligned",
"selfClosing": "after-props"
}],
"react/jsx-equals-spacing": ["error", "never"],
"react/jsx-first-prop-new-line": ["error", "never"],
"react/jsx-indent": ["error", 2],
"react/jsx-indent-props": ["error", "first"],
"react/jsx-tag-spacing": ["error", {
"beforeSelfClosing": "always"
}],
"react/jsx-wrap-multilines": ["error", {
"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"
}],
"react/no-children-prop": "off",
"react/no-unknown-property": ["error", {"ignore": ["class"]}],
"react/prop-types": "off",
"react/react-in-jsx-scope": "off",
"semi": ["error", "never"],
"space-in-parens": ["error", "never"]
},
"settings": {
"react": {
"version": "17"
}
}
}