forked from Nitrate/Nitrate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
100 lines (91 loc) · 2.84 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
module.exports = {
'plugins': [
'jsdoc'
],
'env': {
'browser': true,
'es6': true,
'jquery': true,
'qunit': true
},
'extends': [
'eslint:recommended',
'plugin:jsdoc/recommended'
],
'globals': {
'Atomics': 'readonly',
'SharedArrayBuffer': 'readonly',
// vendors
'Handlebars': 'readonly',
'SelectBox': 'readonly',
'SelectFilter': 'readonly',
'TableDnD': 'readonly',
'jQ': 'readonly',
'Nitrate': 'writable',
'SORT_KEY_MIN': 'readonly',
'SORT_KEY_MAX': 'readonly',
'isSortKeyInAllowedRange': 'readonly',
'getBuildsByProductId': 'readonly',
'getCategoriesByProductId': 'readonly',
'getComponentsByProductId': 'readonly',
'getVersionsByProductId': 'readonly',
'registerProductAssociatedObjectUpdaters': 'readonly',
'getRequest': 'readonly',
'patchRequest': 'readonly',
'postHTMLRequest': 'readonly',
'postRequest': 'readonly',
'postToURL': 'readonly',
'sendHTMLRequest': 'readonly',
'removeComment': 'readonly',
'submitComment': 'readonly',
'updateCommentsCount': 'readonly',
'CaseTagsView': 'readonly',
'PlanTagsView': 'readonly',
'RunTagsView': 'readonly',
'blinddownAllCases': 'readonly',
'blindupAllCases': 'readonly',
'clearDialog': 'readonly',
'confirmDialog': 'readonly',
'constructAjaxLoading': 'readonly',
'constructForm': 'readonly',
'defaultMessages': 'readonly',
'emptySelect': 'readonly',
'getDialog': 'readonly',
'getSelectedCaseIDs': 'readonly',
'globalCsrfToken': 'readonly',
'id_to_windowname': 'readonly',
'popupAddAnotherWindow': 'readonly',
'previewPlan': 'readonly',
'renderComponentForm': 'readonly',
'setUpChoices': 'readonly',
'showModal': 'readonly',
'SHORT_STRING_LENGTH': 'readonly',
'splitString': 'readonly',
'updateObject': 'readonly',
'createInputElement': 'readonly',
},
'parserOptions': {
'ecmaVersion': 2018
},
'rules': {
'brace-style': ['error', '1tbs', {'allowSingleLine': true}],
'camelcase': ['error', {'properties': 'never'}],
'comma-spacing': 'error',
'curly': 'error',
'eqeqeq': 'error',
'func-call-spacing': 'error',
'func-style': ['error', 'declaration'],
'indent': ['error', 2, {'SwitchCase': 1}],
'linebreak-style': ['error', 'unix'],
'max-len': ['error', {'code': 120, 'ignoreUrls': true}],
'no-trailing-spaces': 'error',
'no-unused-vars': ['error', {'caughtErrors': 'none', 'vars': 'local', 'args': 'none'}],
'no-var': 'error',
'object-curly-spacing': 'error',
'operator-linebreak': ['error', 'after'],
'quotes': ['error', 'single', {'avoidEscape': true}],
'space-before-function-paren': ['error', {'anonymous': 'always', 'named': 'never', 'asyncArrow': 'always'}],
'space-infix-ops': 'error',
'jsdoc/require-jsdoc': 0
}
};