-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
109 lines (109 loc) · 2.54 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
{
"plugins": ["react", "prettier", "import", "jsx-a11y"],
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"modules": true,
"jsx": true
}
},
"env": {
"es6": true,
"browser": true,
"node": true,
"mocha": true
},
"globals": {
"ga": true,
"cy": true
},
"extends": [
"eslint:recommended",
"eslint-config-synacor",
"prettier",
"prettier/react"
],
"rules": {
"prefer-template": 2,
"template-curly-spacing": 2,
"space-before-blocks": 2,
"no-lonely-if": 2,
"key-spacing": 2,
"keyword-spacing": 2,
"constructor-super": 2,
"no-this-before-super": 2,
"no-dupe-class-members": 2,
"no-const-assign": 2,
"prefer-spread": 2,
"no-useless-concat": 2,
"no-var": 2,
"max-nested-callbacks": [2, 3],
"no-eval": 2,
"no-implied-eval": 2,
"no-new-func": 2,
"no-else-return": 2,
"no-redeclare": 2,
"no-debugger": 0,
"no-dupe-keys": 2,
"object-shorthand": 2,
"prefer-arrow-callback": 2,
"arrow-spacing": 2,
"arrow-body-style": 2,
"comma-dangle": 0,
"no-empty-pattern": 0,
"react/jsx-indent-props": 0,
"react/jsx-no-bind": 0,
"react/no-danger": 0,
"brace-style": 0,
"compat/compat": 0,
"jsx-a11y/onclick-has-role": 0,
"jsx-a11y/onclick-has-focus": 0,
"react/jsx-tag-spacing": "warn",
"react/jsx-uses-react": "warn",
"react/jsx-uses-vars": "warn",
"react/no-deprecated": "warn",
"react/no-did-mount-set-state": "warn",
"react/no-did-update-set-state": "warn",
"react/no-direct-mutation-state": "warn",
"react/no-is-mounted": "warn",
"react/no-unused-prop-types": "warn",
"react/prefer-es6-class": "warn",
"react/prefer-stateless-function": "warn",
"react/require-render-return": "warn",
"react/self-closing-comp": "warn",
"react/sort-comp": "warn",
"react/sort-prop-types": "warn",
"react/style-prop-object": "warn",
"react/void-dom-elements-no-children": "warn",
"quotes": [
2,
"single",
{
"avoidEscape": true
}
],
"import/no-extraneous-dependencies": 0,
"import/namespace": 2,
"import/default": 2,
"import/export": 2,
"import/first": 2,
"import/order": 2,
"import/newline-after-import": 2,
"linebreak-style": 0,
"indent": [
2,
2,
{
"SwitchCase": 1
}
],
"no-underscore-dangle": [
2,
{
"allowAfterThis": true
}
],
"class-methods-use-this": 0,
"react/display-name": 0
}
}