forked from GitNation/live-conferences
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
executable file
·94 lines (93 loc) · 2.23 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
const error = 2;
const warn = 1;
const ignore = 0;
module.exports = {
parser: 'babel-eslint',
env: {
browser: true,
node: true,
jquery: true,
jest: true,
},
plugins: ['jquery'],
extends: ['plugin:jquery/deprecated'],
globals: {
google: 'readonly',
YT: 'readonly',
},
rules: {
'no-undef': warn,
'no-unused-vars': warn,
eqeqeq: [error, 'smart'],
'no-floating-decimal': error,
'no-multi-spaces': [
error,
{
exceptions: {
ImportDeclaration: true,
VariableDeclarator: true,
},
},
],
'no-multi-str': error,
camelcase: warn,
'eol-last': warn,
indent: [
error,
error,
{
SwitchCase: warn,
VariableDeclarator: warn,
},
],
quotes: [error, 'single', 'avoid-escape'],
semi: [error, 'always'],
'space-before-blocks': error,
"space-before-function-paren": ["error", {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}],
'constructor-super': error,
'arrow-spacing': error,
'jquery/no-ajax': error,
'jquery/no-animate': error,
'jquery/no-attr': error,
'jquery/no-bind': error,
'jquery/no-class': error,
'jquery/no-clone': error,
'jquery/no-closest': error,
'jquery/no-css': error,
'jquery/no-data': error,
'jquery/no-deferred': error,
'jquery/no-delegate': error,
'jquery/no-each': error,
'jquery/no-fade': error,
'jquery/no-filter': error,
'jquery/no-find': error,
'jquery/no-global-eval': error,
'jquery/no-has': error,
'jquery/no-hide': error,
'jquery/no-html': error,
'jquery/no-in-array': error,
'jquery/no-is': error,
'jquery/no-map': error,
'jquery/no-merge': error,
'jquery/no-param': error,
'jquery/no-parent': error,
'jquery/no-parents': error,
'jquery/no-parse-html': error,
'jquery/no-prop': error,
'jquery/no-proxy': error,
'jquery/no-serialize': error,
'jquery/no-show': error,
'jquery/no-sizzle': error,
'jquery/no-slide': error,
'jquery/no-text': error,
'jquery/no-toggle': error,
'jquery/no-trigger': error,
'jquery/no-trim': error,
'jquery/no-val': error,
'jquery/no-wrap': error,
},
};