forked from zotero/translators
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
67 lines (60 loc) · 1.55 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
58
59
60
61
62
63
64
65
66
67
{
"env": {
"browser": true,
"es2018": true
},
"extends": [
"@zotero"
],
"globals": {
"Zotero": "readonly",
"Z": "readonly",
"ZU": "readonly",
"attr": "readonly",
"innerText": "readonly",
"text": "readonly",
"request": "readonly",
"requestText": "readonly",
"requestJSON": "readonly",
"requestDocument": "readonly"
},
"rules": {
"no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^testCases$|^detectWeb$|^doWeb$|^detectImport$|^doImport$|^doExport$|^detectSearch$|^doSearch$|^exports$"
}
],
"no-redeclare": ["error", {"builtinGlobals": true}],
"linebreak-style": ["error", "unix"],
"lines-around-comment": [
"error",
{
"ignorePattern": "END TEST CASES"
}
],
"no-restricted-globals": ["error", {
"name": "document",
"message": "Use doc instead."
}],
"zotero-translator/not-executable": "error",
"zotero-translator/header-valid-json": "error",
"zotero-translator/header-translator-id": "error",
"zotero-translator/header-last-updated": "warn",
"zotero-translator/header-translator-type": "warn",
"zotero-translator/no-for-each": "warn",
"zotero-translator/prefer-index-of": "warn",
"zotero-translator/robust-query-selector": "warn",
"zotero-translator/test-cases": "error",
"zotero-translator/translator-framework": "warn",
"zotero-translator/license": [ "warn", {
"mustMatch": "GNU Affero General Public License",
"templateFile": ".ci/AGPL"
}]
},
"plugins": [
"zotero-translator"
],
"processor": "zotero-translator/translator"
}