-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
46 lines (46 loc) · 1.9 KB
/
.eslintrc.yml
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
env:
browser: true
es6: true
extends:
- airbnb-base
globals:
Atomics: readonly
SharedArrayBuffer: readonly
chrome: writable
easyPeasyAuth: writable
parserOptions:
ecmaVersion: 2020
sourceType: module
rules:
max-len: ["error", { "code": 120 }]
# E@syPe@syP@ss relies heavily on the XOR operator:
# targetPassword XOR secretHash = correctionValue
# → which is stored in local storage
# → backward calculation: correctionValue XOR secretHash = targetPassword
# Impracticable attack: correctionValue XOR targetPassword = secretHash = f(masterPass, siteUrl, sitePass, userName)
# Even if siteUrl, sitePass, userName are known, the master password is kept secret because
# the cryptographic function f is a one-way function that means, that the inverse hash function f-¹ cannot be
# found. In other words, knowledge of all other parameters is not relevant for the "calculation" - security of
# E@syPe@syP@ss is solely based on the fact that it is extremely difficult to determine a value from its hash value.
no-bitwise: "off"
# we simply use alerts to notify the user about errors.
no-alert: "off"
# we use node = nodeList[0] instead of [node] = nodeList;
prefer-destructuring: "off"
# the explanation of the rule "differences of white space can change semantics" did not convince me
no-plusplus: "off"
# we define listeners, all functions are defined, when they are used
no-use-before-define: "off"
########## DECIDE by yourself: what is better to read:
# let idx = 0;
# const rows = [];
# transfers.forEach((transfer) => rows.push(getRow(transfer, idx++)));
# (await Promise.all(rows)).forEach((row) => transferUsersNode.appendChild(row));
############ vs. ###########
# let idx = 0;
# for (const transfer of transfers) {
# const row = await getRow(transfer, idx++);
# transferUsersNode.appendChild(row);
# }
no-await-in-loop: "off"
no-restricted-syntax: "off"