-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
52 lines (52 loc) · 1.1 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
{
parserOptions: {
sourceType: 'module'
},
// the enviroment
env: {
browser: true,
node: true,
es6: true
},
// permit globals
globals: {
Paginator: true,
Page: true
},
// useful defaults
extends: [
'eslint:recommended'
],
// manual rules set
rules: {
no-unused-vars: [1, {
vars: 'all',
args: 'all',
varsIgnorePattern: 'Paginator|Page'
}],
indent: ['error', 2, {
SwitchCase: 1,
VariableDeclarator: 2,
MemberExpression: 1,
ArrayExpression: 1,
ObjectExpression: 1
}],
key-spacing: ['error', {
beforeColon: false,
afterColon: true,
mode: 'minimum'
}],
linebreak-style: ['error', 'unix'],
quotes: ['error', 'single'],
semi: ['error', 'always'],
prefer-const: ['error', {
destructuring: 'any',
ignoreReadBeforeAssign: true
}],
no-const-assign: 'error',
no-console: ['error', { allow: ['info', 'warn', 'error'] }],
block-spacing: 'error',
comma-style: ['error', 'last'],
comma-spacing: ["error", { before: false, after: true }]
}
}