Answer the question
In order to leave comments, you need to log in
What does ESLint and Prettier setup for code linting mean?
Good day.
Started doing the test. The requirements are written in English. language.
I sort of understood everything, except for one point - ESLint and Prettier setup for code linting.
What is ESLint and Prettier?
Google says ESLint is extremely useful because JavaScript, being an interpreted language, has no compile time and many errors can only be caught at runtime. But here's the catch, because according to the condition, the test should be written on a type script, which just serves for this. Why then this ESLint is needed?
The second question is Prettier. Google says it's a code autoformatting tool with support for a bunch of tools. I am using visual studio code, with Prettier - Code formatter extension
is it the same or not?
Answer the question
In order to leave comments, you need to log in
1. ESLint allows more complex and tricky validation rules, not necessarily related specifically to errors like typescript itself, but also to potential errors, anti-patterns, formatting, and general taste. Just look at the list .
2. The same thing, but it is also correct to set it up not only for yourself, but "for everyone" in the project itself, so that it auto-formats into a single standard for the team (usually in conjunction with eslint).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question