-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc
106 lines (104 loc) · 3.88 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
100
101
102
103
104
105
106
{
"parser": "@typescript-eslint/parser",
"env": {
"browser": true,
"es6": true,
"es2017": true,
"es2020": true
},
"plugins": [
"react",
"@typescript-eslint/eslint-plugin",
"jsx-a11y",
"import"
],
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"settings": {
"linkComponents": [
"Hyperlink",
{"name": "Link", "linkAttribute": "to"}
],
"react": {
"version": "999.999.999" /* https://github.com/jsx-eslint/eslint-plugin-react/issues/1955#issuecomment-415181022 */
}
},
"rules": {
"no-console": "error",
"for-direction": "error",
"no-cond-assign": "error",
"no-plusplus": ["error", {"allowForLoopAfterthoughts": true}],
"indent": ["error", 2, { "SwitchCase": 1 }],
"jsx-a11y/accessible-emoji": "error",
"jsx-a11y/alt-text": "error",
"jsx-a11y/anchor-has-content": "error",
"jsx-a11y/aria-activedescendant-has-tabindex": "error",
"jsx-a11y/aria-props": "error",
"jsx-a11y/aria-proptypes": "error",
"jsx-a11y/aria-role": "error",
"jsx-a11y/aria-unsupported-elements": "error",
"jsx-a11y/heading-has-content": "error",
"jsx-a11y/html-has-lang": "error",
"jsx-a11y/iframe-has-title": "error",
"jsx-a11y/img-redundant-alt": "error",
"jsx-a11y/interactive-supports-focus": "error",
"jsx-a11y/lang": "error",
"jsx-a11y/media-has-caption": "error",
"jsx-a11y/mouse-events-have-key-events": "error",
"jsx-a11y/no-access-key": "error",
"jsx-a11y/no-autofocus": "error",
"jsx-a11y/no-distracting-elements": "error",
"jsx-a11y/no-interactive-element-to-noninteractive-role": "error",
"jsx-a11y/no-noninteractive-element-interactions": "error",
"jsx-a11y/no-noninteractive-element-to-interactive-role": "error",
"jsx-a11y/no-noninteractive-tabindex": "error",
"jsx-a11y/no-redundant-roles": "error",
"jsx-a11y/role-has-required-aria-props": "error",
"jsx-a11y/role-supports-aria-props": "error",
"jsx-a11y/scope": "error",
"jsx-a11y/tabindex-no-positive": "error",
"react/jsx-curly-brace-presence": "error",
"react/no-children-prop": "error",
"react/no-danger-with-children": "error",
"react/no-did-mount-set-state": "error",
"react/no-direct-mutation-state": "error",
"react/no-find-dom-node": "error",
"react/no-is-mounted": "error",
"react/no-multi-comp": ["error", { "ignoreStateless": true }],
"react/no-redundant-should-component-update": "error",
"react/no-render-return-value": "error",
"react/jsx-no-target-blank": "error",
"react/no-this-in-sfc": "error",
"react/no-typos": "error",
"react/no-unknown-property": "error",
"react/react-in-jsx-scope": "error",
"react/require-render-return": "error",
"react/self-closing-comp": "error",
"react/sort-comp": "error",
"react/style-prop-object": "error",
"react/void-dom-elements-no-children": "error",
"react/jsx-closing-bracket-location": ["error", "line-aligned"],
"react/jsx-curly-newline": ["error", "consistent"],
"react/jsx-curly-spacing": ["error", "never"],
"react/jsx-equals-spacing": ["error", "never"],
"react/jsx-first-prop-new-line": ["error", "multiline-multiprop"],
"react/jsx-fragments": ["error", "element"],
"react/jsx-indent": ["error", 2],
"react/jsx-indent-props": ["error", 2],
"react/jsx-max-props-per-line": ["error", { "when": "multiline" }],
"react/jsx-no-comment-textnodes": "error",
"react/jsx-no-undef": "error",
"react/jsx-no-useless-fragment": "error",
"react/jsx-props-no-multi-spaces": "error",
"react/jsx-sort-default-props": ["error", { "ignoreCase": true }],
"react/jsx-sort-props": "error",
"react/jsx-tag-spacing": "error",
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react/jsx-wrap-multilines": ["error", { "return": "parens-new-line" }]
}
}