Lyubo Marinov
4581605a28
[eslint] newline-after-var, newline-before-return, newline-per-chained-call
8 роки тому
Lyubo Marinov
110fe997b6
[eslint] no-continue
8 роки тому
Lyubo Marinov
13bfa61028
[eslint] prefer-arrow-callback
8 роки тому
Lyubo Marinov
c991abf9ef
[eslint] prefer-template
8 роки тому
Lyubo Marinov
5bff0ed543
[eslint] no-var
8 роки тому
hristoterezov
e4352d2188
fix(eslint): Add no-else-return rule
8 роки тому
hristoterezov
99d121e906
fix(eslint): Add guard-for-in rule
8 роки тому
Lyubo Marinov
4293971466
[eslint] operator-linebreak
8 роки тому
Lyubo Marinov
ed0d464392
[eslint] quotes
8 роки тому
Lyubo Marinov
b5b0e95b4e
[eslint] sort-vars
8 роки тому
Lyubo Marinov
f8ab8015a2
[eslint] space-before-blocks
8 роки тому
Lyubo Marinov
78217478d1
[eslint] space-before-function-paren
8 роки тому
Lyubo Marinov
324afc0caf
[eslint] space-infix-ops
8 роки тому
Lyubo Marinov
14147059b3
[eslint] spaced-comment
8 роки тому
hristoterezov
c96898c478
fix(eslint): Add no-multi-spaces rule
8 роки тому
hristoterezov
3e44723582
fix(eslint): Add indent rule
8 роки тому
hristoterezov
f02a22d3f9
fix(eslint): Add brace-style rule
8 роки тому
hristoterezov
c36b464bfc
fix(eslint): Add curly rule
8 роки тому
Lyubo Marinov
596767d57e
[eslint] object-shorthand
8 роки тому
hristoterezov
fceb8606d8
fix(eslint): Add no-extra-parens rule
8 роки тому
hristoterezov
cefc270807
fix(electron): statistics
9 роки тому
hristoterezov
14053f3b83
refactor(statistics): Remove unused code
9 роки тому
Boris Grozev
62276e5456
cleanup: Removes mode unused code.
9 роки тому
Boris Grozev
b99136f199
cleanup: Renames a confusingly named class.
9 роки тому
Boris Grozev
c6c71c59f6
cleanup: Renames a confusingly named variable.
9 роки тому
Boris Grozev
d37a86e97d
cleanup: Renames a confuingly named function, and fixes its documentation.
9 роки тому
Boris Grozev
a601ec1e4a
cleanup: Renames a confusingly named function.
9 роки тому
Boris Grozev
e44394b476
cleanup: Renames a confusingle named function.
9 роки тому
Boris Grozev
a60b9aa0cb
cleanup: Renames a confusingly named variable and corrects the documentation.
9 роки тому
Boris Grozev
9dffaec727
docs: Fixes documentation.
9 роки тому
Boris Grozev
7e7ee9f7b7
cleanup: Renames a confusingly named field.
9 роки тому
Boris Grozev
f05c85b52d
cleanup: Removes an unnecessary variable.
9 роки тому
Boris Grozev
de3596c2a0
cleanup: Renames a confusingly named field.
9 роки тому
Boris Grozev
01e4324109
cleanup: Removes unused code.
9 роки тому
Boris Grozev
24a2d6548e
cleanup: Renames a confusingly named field.
9 роки тому
Boris Grozev
54a1409554
cleanup: Simplifies code and documents the units.
9 роки тому
Boris Grozev
26e5ddcdcd
cleanup: Simplifies code.
9 роки тому
Boris Grozev
26c320b0c1
fix: Don't deliberately lose time resolution.
9 роки тому
Boris Grozev
5c6b1f6b2c
cleanup: Simplifies code.
9 роки тому
Boris Grozev
6af25ab09e
cleanup: Uses a helper function.
9 роки тому
Boris Grozev
691513de98
cleanup: Renames a confusingly named variable.
9 роки тому
Boris Grozev
2d11371b47
cleanup: Remove an unnecessary variable.
9 роки тому
Boris Grozev
0e99267fe3
cleanup: Renames a confusingly named variable.
9 роки тому
Boris Grozev
566284b07f
cleanup: Renames a confusingly named variable.
9 роки тому
Boris Grozev
f9e6bb30bf
cleanup: Renames a confusingly named variable.
9 роки тому
Boris Grozev
80a9d1cfad
cleanup: Renames a confusingly named variable.
9 роки тому
Boris Grozev
3177ddad44
cleanup: Remove a warning log message.
9 роки тому
hristoterezov
14ad15d956
refactor(audio_problem): Remove audio problem detection
9 роки тому
Lyubomir Marinov
90ee7e8a54
ESLint
Our JSHint configuration is not extensive and we have excluded multiple
files from linting. Additionally, we have seen JSHint to be unable to
parse newer ECMAScript features such as the object spread operator
(proposal).
On the other hand, we have seen ESLint to beautifully work on React and
React Native source code in addition to ES2015 and later. Introduce
ESLint alongside JSHint as an intermediate step to eventually switching
from JSHint to ESLint.
As our source code does not fully follow even the JSHint rules we have,
it is very difficult to introduce ESLint with many rules. At the
beginning, introduce it with as little rules as possible. Morever,
ESLint is able to automatically fix certain rule offenders so once we
have ESLint merged we can incrementally add new rules while keeping our
commits' modification on as little subjects as possible.
9 роки тому
Lyubomir Marinov
39488195d5
Add jsdocs
9 роки тому