This repository has been archived by the owner on Jul 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 43
/
.eslintrc
135 lines (125 loc) · 3.19 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
{
"parser": "babel-eslint",
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:jsx-a11y/recommended"
],
"env": {
"browser": false,
"es6": true,
"node": true
},
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"globals": {
"window": true,
"document": true,
"localStorage": true,
"sessionStorage": true,
"XMLHttpRequest": true,
"React": true,
"moment": true,
"jQuery": true
},
"plugins": [
"react",
"jsx-a11y"
],
"settings": {
"react": {
"pragma": "React",
"version": "16.0"
}
},
"rules": {
"arrow-parens": ["warn", "as-needed"],
"arrow-spacing": "warn",
"block-scoped-var": "warn",
"brace-style": [ "warn", "stroustrup", {
"allowSingleLine": true
}],
"comma-dangle": [ "warn", "always-multiline" ],
"comma-spacing": "warn",
"comma-style": "warn",
"curly": "warn",
"dot-notation": "warn",
"eol-last": "error",
"eqeqeq": "warn",
"func-call-spacing": [ "warn", "never" ],
"func-style": [ "error", "declaration", {
"allowArrowFunctions": true
}],
"generator-star-spacing": "warn",
"indent": [ "warn", 2, {
"MemberExpression": 0,
"SwitchCase": 1
}],
"jsx-quotes": "error",
"new-parens": "error",
"no-caller": "error",
"no-console": "off",
"no-duplicate-imports": "error",
"no-else-return": "warn",
"no-eval": "error",
"no-extra-label": "warn",
"no-floating-decimal": "warn",
"no-lonely-if": "warn",
"no-mixed-operators": "warn",
"no-multi-str": "error",
"no-negated-in-lhs": "warn",
"no-shadow": "warn",
"no-undef-init": "error",
"no-unused-expressions": "error",
"no-useless-computed-key": "warn",
"no-useless-constructor": "warn",
"no-useless-rename": "warn",
"no-useless-return": "warn",
"no-var": "error",
"no-whitespace-before-property": "warn",
"object-curly-spacing": [ "error", "always" ],
"prefer-const": "warn",
"prefer-rest-params": "warn",
"quote-props": [ "error", "as-needed" ],
"quotes": [ "warn", "single", {
"allowTemplateLiterals": true
}],
"rest-spread-spacing": ["warn", "never"],
"semi-spacing": "warn",
"semi-style": [ "warn", "last" ],
"semi": [ "error", "always" ],
"space-before-blocks": "warn",
"space-before-function-paren": "warn",
"space-infix-ops": "warn",
"space-in-parens": ["warn", "never"],
"spaced-comment": ["warn", "always"],
"template-curly-spacing": "warn",
"yield-star-spacing": "warn",
"valid-jsdoc": ["warn", {
"requireReturn": false,
"requireReturnDescription": false,
"requireParamDescription": false
}],
"react/display-name": "off",
"react/jsx-curly-spacing": "off",
"react/jsx-equals-spacing": "error",
"react/jsx-indent": [ "warn", 2 ],
"react/jsx-indent-props": [ "warn", 2 ],
"react/jsx-key": "error",
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react/jsx-tag-spacing": "warn",
"react/no-children-prop": "off",
"react/no-find-dom-node": "warn",
"react/no-unescaped-entities": "off",
"react/prop-types": "off",
"jsx-a11y/label-has-for": [ "error", { "required": "id" }],
"jsx-a11y/media-has-caption": "off",
"jsx-a11y/no-noninteractive-tabindex": "off",
"jsx-a11y/role-has-required-aria-props": "off"
}
}