-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
54 lines (54 loc) · 1.52 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
module.exports = {
parser: 'babel-eslint',
globals: { workbox: true },
env: {
jest: true,
jasmine: true,
es6: true,
browser: true,
worker: true,
node: true,
},
rules: {
// 'key-spacing' : [2, {
// singleLine : {
// beforeColon : false,
// afterColon : true,
// },
// multiLine : {
// beforeColon : true,
// afterColon : true,
// align : 'colon',
// },
// }],
curly: [
'error',
'all',
],
indent: [2, 4, { SwitchCase: 1 }],
'max-len': ['error', {
code: 500,
comments: 500,
}],
'no-underscore-dangle': ['error',
{
allow: ['__REDUX_DEVTOOLS_EXTENSION_COMPOSE__', '__REDUX_DEVTOOLS_EXTENSION__'],
},
],
'jsx-a11y/media-has-caption': [1, {
audio: ['Audio'],
video: ['Video'],
track: ['Track'],
}],
'brace-style': ['error', 'stroustrup'],
'no-plusplus': ['error', { allowForLoopAfterthoughts: true }],
'no-console': 'off',
'no-restricted-syntax': [
'warn',
{
selector: "CallExpression[callee.object.name='console'][callee.property.name!=/^(debug|error|trace)$/]",
message: 'Unexpected property on console object was called',
},
],
},
};