This repository has been archived by the owner on Apr 16, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.js
119 lines (119 loc) · 2.41 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
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
module.exports = {
env: {
browser: true,
jquery: true,
es6: true,
},
extends: 'airbnb-base',
globals: {
$: true,
_validator: true,
baseUrl: true,
jQuery: true,
moment: true,
onDateRangeChange: true,
},
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2018,
parser: 'babel-eslint',
sourceType: 'module',
},
plugins: ['import'],
rules: {
'arrow-parens': ['warn', 'as-needed'],
'brace-style': [0, 'stroustrup'],
'comma-dangle': [
'error',
{
arrays: 'always-multiline',
objects: 'always-multiline',
},
],
'consistent-return': ['error', { treatUndefinedAsUnspecified: true }],
'default-case': [
'error',
{
commentPattern: '^skip\\sdefault',
},
],
'func-names': 0,
'function-paren-newline': 0,
'global-require': 0,
'implicit-arrow-linebreak': ['warn', 'beside'],
indent: 0,
'linebreak-style': 0,
'max-len': 0,
'new-cap': 0,
'import/newline-after-import': 0,
'newline-per-chained-call': 0,
'no-console': ['warn', { allow: ['warn', 'error'] }],
'no-continue': 0,
'no-debugger': 1,
'no-else-return': ['error', { allowElseIf: true }],
'no-loop-func': 0,
'no-mixed-operators': 0,
'no-nested-ternary': 0,
'no-new': 0,
'no-param-reassign': [
'error',
{
props: true,
ignorePropertyModificationsFor: ['$', 'd', 'el', 'field', 'item', 'model'],
},
],
'no-restricted-globals': 0,
'no-restricted-properties': 0,
'no-template-curly-in-string': 0,
'no-underscore-dangle': [
'error',
{
allow: [
'_countRemoveWrapper',
'_d',
'_data',
'_fade',
'_hoverState',
'_iDisplayLength',
'_restoreItemIfFading',
'_setFadeTimer',
],
allowAfterThis: true,
},
],
'no-unused-expressions': ["error", { "allowShortCircuit": true }],
'no-unused-vars': 0,
'no-use-before-define': 0,
'no-undef': 0,
'no-new': 0,
'no-tabs': 0,
'object-curly-newline': [
'error',
{
ObjectPattern: { multiline: false },
},
],
'operator-linebreak': ['error', 'after'],
'prefer-arrow-callback': ['error'],
'prefer-destructuring': [
'error',
{
array: false,
object: false,
},
{
enforceForRenamedProperties: false,
},
],
radix: 0,
'space-before-function-paren': [1, 'never'],
'vars-on-top': 0,
},
settings: {
'import/resolver': {
'babel-module': {},
},
},
};