Linters are tools that can automatically check the style of your code and make improving suggestions.
Insert an extra newline where it helps to make the code more readable. There should not be more than nine lines of code without a vertical indentation.
the opening brace on the same line as the corresponding keyword – not on a new line. There should also be a space before the opening bracket
For a very brief code, one line is allowed, e.g. if (cond) return null. But a code block (the last variant) is usually more readable.
Glasp is a social web highlighter that people can highlight and organize quotes and thoughts from the web, and access other like-minded people’s learning.