What is the difference between eslint and vscode for creating a new application in loopback4 , while using the command lb4 app, and wherever we can use it?
Asked
Active
Viewed 44 times
-2
-
ESLint is a linter and VS Code is an IDE, so it's unclear why you'd have to ask. – jonrsharpe Jun 24 '20 at 09:51
-
as joneshape said unclear, even Not related to loopback4. You can use any editor, if you wish use notepad or vim to develop. – Madaky Jun 24 '20 at 10:15
1 Answers
0
Hello from the LoopBack team
The eslint
option configures the generated project to lint the code using eslint. It adds eslint
-related modules to devDependencies
, adds package.json
scripts like npm run lint
and npm run eslint
, and so on.
The vscode
option adds VSCode-related configuration files (.vscode/settings.json
and .vscode/tasks.json
), see the templates in packages/cli/generators/project/templates/.vscode
It would be great if you could contribute a pull request to improve our documentation for future readers, see Application generator page and Contributing documentation to LoopBack 4.
Miroslav Bajtoš
- 9,924
- 1
- 36
- 91