Adding eslint for code analysis

This commit is contained in:
CK 2021-10-30 11:42:48 +02:00
parent 7e49eaecfa
commit bb85a4d496
1 changed files with 3 additions and 3 deletions

View File

@ -56,10 +56,10 @@ Quick starting guide for new plugin devs:
- [ESLint](https://eslint.org/) is a tool that analyzes your code to quickly find problems. You can run ESLint against your plugin to find common bugs and ways to improve your code.
- To use eslint with this project, make sure to install eslint from terminal:
- `npm install -g eslint`
- To use eslint analyze this project use this command:
- To use eslint to analyze this project use this command:
- `eslint main.ts`
- eslint will then createe a report with suggestions for code improvement by file and line number.
- If your source code is a folder, such as `src`, you can use eslint with this command to analyze all files in that folder:
- eslint will then create a report with suggestions for code improvement by file and line number.
- If your source code is in a folder, such as `src`, you can use eslint with this command to analyze all files in that folder:
- `eslint .\src\`