forked from keepassxreboot/keepassxc-browser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
192 lines (192 loc) · 6.1 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
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
{
"extends": "eslint:recommended",
"ignorePatterns": ["**/*.min.js"],
"env": {
"browser": true,
"es2022": true,
"jquery": true,
"webextensions": true
},
"parserOptions": {
"ecmaVersion": 13
},
"rules": {
"array-bracket-spacing": ["error", "always"],
"arrow-body-style": "warn",
"arrow-parens": "off",
"arrow-spacing": "warn",
"block-scoped-var": "off",
"brace-style": ["warn", "1tbs"],
"camelcase": "warn",
"class-methods-use-this": "off",
"comma-dangle": "off",
"computed-property-spacing": ["error", "never"],
"consistent-return": "off",
"dot-notation": "off",
"eqeqeq": "error",
"func-names": "off",
"function-paren-newline": "off",
"guard-for-in": "off",
"implicit-arrow-linebreak": "off",
"indent": ["error", 4],
"linebreak-style": ["error", "unix"],
"lines-around-comment": "off",
"max-len": "off",
"no-alert": "error",
"no-await-in-loop": "off",
"no-bitwise": "off",
"no-console": "off",
"no-continue": "off",
"no-control-regex": "off",
"no-else-return": "off",
"no-empty-function": ["error", { "allow": ["arrowFunctions", "methods", "asyncMethods"] }],
"no-extend-native": "off",
"no-global-assign": "off",
"no-lonely-if": "off",
"no-loop-func": "off",
"no-mixed-operators": "off",
"no-mixed-spaces-and-tabs": ["error", "smart-tabs"],
"no-multi-spaces": "warn",
"no-param-reassign": "off",
"no-plusplus": "off",
"no-prototype-builtins": "off",
"no-redeclare": "off",
"no-restricted-globals": "off",
"no-restricted-syntax": "off",
"no-return-await": "off",
"no-tabs": "warn",
"no-underscore-dangle": "off",
"no-unused-vars": ["warn", { "args": "none", "varsIgnorePattern": "[A-Z_]+|tr|[$]" }],
"no-use-before-define": "off",
"no-useless-escape": "off",
"no-useless-return": "off",
"no-var": "error",
"object-curly-spacing": ["warn", "always"],
"object-shorthand": "off",
"operator-linebreak": "off",
"prefer-arrow-callback": "off",
"prefer-const": "warn",
"prefer-destructuring": "off",
"prefer-template": "off",
"quote-props": "off",
"quotes": ["error", "single", { "avoidEscape": true }],
"semi": ["error", "always"],
"space-before-blocks": "warn",
"space-before-function-paren": "off",
"space-in-parens": ["error", "never"],
"space-unary-ops": "off",
"spaced-comment": "off",
"strict": "off",
"vars-on-top": "off"
},
"globals": {
"_called": true,
"acceptedOTPFields": true,
"assertInputFields": true,
"assertPasswordChangeFields": true,
"assertRegex": true,
"assertSearchField": true,
"assertSearchForm": true,
"assertTOTPField": true,
"AssociatedAction": true,
"AuthenticatorAssertionResponse": true,
"AuthenticatorAttestationResponse": true,
"Autocomplete": true,
"BLUE_BUTTON": true,
"bootstrap": true,
"browser": true,
"browserAction": true,
"CHECK_UPDATE_NEVER": true,
"CHECK_UPDATE_ONE_MONTH": true,
"CHECK_UPDATE_ONE_WEEK": true,
"CHECK_UPDATE_THREE_DAYS": true,
"cloneInto": true,
"createResult": true,
"createStylesheet": true,
"DatabaseState": true,
"debugLogMessage": true,
"EXTENSION_NAME": true,
"getCurrentTab": true,
"getLoginData": true,
"getTopLevelDomainFromUrl": true,
"GRAY_BUTTON_CLASS": true,
"GREEN_BUTTON": true,
"httpAuth": true,
"Icon": true,
"IGNORE_AUTOSUBMIT": true,
"IGNORE_FULL": true,
"IGNORE_NORMAL": true,
"IGNORE_NOTHING": true,
"importScripts": true,
"IMPROVED_DETECTION_PREDEFINED_SITELIST": true,
"initColorTheme": true,
"isEdge": true,
"isFirefox": true,
"keepass": true,
"keepassClient": true,
"kpActions": true,
"kpErrors": true,
"kpxc": true,
"kpxcAssert": true,
"kpxcBanner": true,
"kpxcCustomLoginFieldsBanner": true,
"kpxcEvent": true,
"kpxcFields": true,
"kpxcFill": true,
"kpxcForm": true,
"kpxcIcons": true,
"kpxcObserverHelper": true,
"kpxcPasswordGenerator": true,
"kpxcPasswordIcons": true,
"kpxcSites": true,
"kpxcTOTPAutocomplete": true,
"kpxcTOTPIcons": true,
"kpxcUI": true,
"kpxcUserAutocomplete": true,
"kpxcUsernameIcons": true,
"logDebug": true,
"logError": true,
"kpxcPasskeysUtils": true,
"ManualFill": true,
"matchesWithNodeName": true,
"MAX_AUTOCOMPLETE_NAME_LEN": true,
"MAX_OPACITY": true,
"MAX_TOTP_INPUT_LENGTH": true,
"menuContexts": true,
"MIN_INPUT_FIELD_OFFSET_WIDTH": true,
"MIN_INPUT_FIELD_WIDTH_PX": true,
"MIN_OPACITY": true,
"MIN_TOTP_INPUT_LENGTH": true,
"module": true,
"nacl": true,
"ORANGE_BUTTON": true,
"page": true,
"Pixels": true,
"PublicKeyCredential": true,
"PREDEFINED_SITELIST": true,
"RED_BUTTON": true,
"retrieveColorScheme": true,
"sendMessage": true,
"showNotification": true,
"siteMatch": true,
"slashNeededForUrl": true,
"SORT_BY_GROUP_AND_TITLE": true,
"SORT_BY_GROUP_AND_USERNAME": true,
"SORT_BY_MATCHING_CREDENTIALS_SETTING": true,
"SORT_BY_RELEVANT_ENTRY": true,
"SORT_BY_TITLE": true,
"SORT_BY_USERNAME": true,
"statusResponse": true,
"Tests": true,
"tr": true,
"trimURL": true
},
"overrides": [
{
"files": ["./*.js"],
"env": {
"node": true
}
}
]
}