forked from zotero/translators
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc
53 lines (48 loc) · 1.21 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
{
"env": {
"browser": false,
"es6": true
},
"extends": [
"@zotero"
],
"parserOptions": {
"ecmaVersion": 7
},
"globals": {
"Zotero": "readonly",
"Z": "readonly",
"ZU": "readonly",
"DOMParser": "readonly",
"XPathResult": "readonly",
"XMLSerializer": "readonly",
"atob": "readonly"
},
"rules": {
"no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^detectWeb$|^doWeb$|^detectImport$|^doImport$|^doExport$|^detectSearch$|^doSearch$|^exports$"
}
],
"no-redeclare": ["error", {"builtinGlobals": true}],
"zotero-translator/not-executable": "error",
"zotero-translator/header-valid-json": "error",
"zotero-translator/translator-id": "error",
"zotero-translator/last-updated": "warn",
"zotero-translator/translator-type": "warn",
"zotero-translator/no-for-each": "warn",
"zotero-translator/prefer-index-of": "warn",
"zotero-translator/test-cases-valid-json": "error",
"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"
]
}