-
Notifications
You must be signed in to change notification settings - Fork 9
/
.eslintrc
57 lines (53 loc) · 1.78 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
{
'parser': 'babel-eslint',
'extends': [
'airbnb-base',
],
'env': {
'es6': true,
'browser': true,
'amd': true,
'mocha': true,
'jquery': true,
},
'globals': {
'jQuery': false,
'$': false,
'require': false,
'module': false,
'console': false,
'global': false,
'dataLayer': true,
'texts_json': false,
// function from binary-style
'tabListener': false
},
'rules': {
'array-callback-return': 0,
'func-names': ['error', 'never'],
'indent': ['error', 4, { 'SwitchCase': 1 }],
'key-spacing': ['error', { align: 'colon' }],
'max-len': ['error', 120, 4, { ignoreUrls: true, ignoreComments: false, ignoreRegExpLiterals: true, ignoreStrings: true, ignoreTemplateLiterals: true }],
'no-multi-spaces': 0,
'no-nested-ternary': 0,
'no-new': 0,
'no-param-reassign': 0,
'no-plusplus': 0,
'no-restricted-properties': ['error', { object: 'arguments', property: 'callee', message: 'arguments.callee is deprecated' }],
'no-underscore-dangle': 0,
'no-use-before-define': 0,
'no-useless-escape': 0,
'one-var': 0,
'prefer-arrow-callback': 0,
'prefer-rest-params': 0,
'radix': ['error', 'as-needed'],
'space-before-function-paren': 0,
'vars-on-top': 0,
'wrap-iife': ['error', 'inside', { functionPrototypeMethods: true }],
// TODO: to be removed
'camelcase': 0,
'no-console': 0,
'object-shorthand': 0,
'strict': 0,
},
}