forked from Andreasvb/Tab-Memory-Purge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
103 lines (100 loc) · 3.14 KB
/
.eslintrc.json
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
{
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "script"
},
"globals": {
"gStrVersionKey": true,
"gStrPreviousSessionTimeKey": true,
"gMapDefaultValues": true,
"gStrDbName": true,
"gNumDbVersion": true,
"gStrDbHistoryName": true,
"gStrDbDataURIName": true,
"gStrDbPageInfoName": true,
"gStrDbSessionName": true,
"gStrDbSavedSessionName": true,
"gObjDbCreateStores": true,
"gStrExtensionExcludeUrl": true,
"gStrChromeExcludeUrl": true,
"gStrTranslationPath": true,
"gStrGetScrollPosScript": true,
"gMapIcons": true,
"gStrBlankUrl": true,
"gStrOptionPage": true,
"gStrChangeHistory": true,
"gStrDeleteIconPath": true,
"UPDATE_CONFIRM_DIALOG": true,
"RESTORE_PREVIOUS_SESSION": true,
"gNumUpdateCheckTime": true,
"DISABLE_AUTOPURGE": true,
"INVALID_EXCLUDE": true,
"KEYBIND_EXCLUDE": true,
"NORMAL": true,
"USE_EXCLUDE": true,
"TEMP_EXCLUDE": true,
"EXTENSION_EXCLUDE": true,
"CHROME_EXCLUDE": true,
"EXTENSION_ICON_38": true,
"EXTENSION_ICON_48": true,
"EXTENSION_ICON_128": true,
"sleep": true,
"escapeForRegExp": true,
"decodeForRegExp": true,
"closureCreateMapObserve": true,
"ajax": true,
"loadTranslation": true,
"closureCreateBeep": true,
"getSplitURI": true,
"getListAfterJoinHistoryDataOnDB": true,
"getHistoryListFromIndexedDB": true,
"getQueryString": true,
"getDataURI": true,
"hasStringOfAttributeOfElement": true,
"addStringToAttributeOfElement": true,
"removeStringFromAttributeOfElement": true,
"keyCheck": true,
"generateKeyString": true,
"toType": true,
"formatDate": true,
"setObjectProperty": true
},
"env": {
"browser": true,
"commonjs": true,
"node": true,
"es6": true,
"webextensions": true
},
"rules": {
"comma-dangle": "off",
"no-console": "off",
"array-callback-return": "error",
"curly": "error",
"dot-location": ["error", "property"],
"eqeqeq": "error",
"guard-for-in": "error",
"no-caller": "error",
"no-div-regex": "error",
"no-eq-null": "error",
"no-eval": "error",
"no-extend-native": "error",
"no-extra-bind": "error",
"no-extra-label": "warn",
"no-lone-blocks": "warn",
"no-loop-func": "warn",
"no-native-reassign": "error",
"no-new": "warn",
"no-new-func": "warn",
"no-throw-literal": "error",
"no-unused-labels": "error",
"no-unused-vars": "warn",
"no-useless-call": "error",
"no-useless-concat": "warn",
"no-useless-escape": "warn",
"radix": "warn",
"yoda": "warn",
"max-len": ["error", {"code": 80, "tabWidth": 4, "ignoreUrls": true}]
}
}