Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c928d8d

Browse files
authored
Merge pull request HackYourFuture#3 from vincentsels/vscode-eslint
Add steps to install ESLint extension
2 parents 70f4890 + 2cedd1b commit c928d8d

File tree

4 files changed

+15
-1
lines changed

4 files changed

+15
-1
lines changed

Week1/MAKEME.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ You will be working on the same application during the next three weeks. For eac
8282
```
8383

8484
- [ ] Clone the fork to your laptop.
85+
8586
- [ ] Open the newly created `JavaScript3` folder from the cloned repository in VS Code *(always open this entire main folder!)*
86-
- [ ] Install the [**ESLint**](https://eslint.org/) extension in VS Code. This extension will highlight and inform you of any violations of the style guide, and allow you to auto-fix a lot of issues. You should probably also already install the [**EditorConfig for VS Code**](https://editorconfig.org/) plugin. Although it's not required in our case because we all use the same editor, it will come in handy when you work on public projects in the future.
8787

8888
- [ ] Open a Terminal window in VS Code or elsewhere, and **from the main JavaScript3 folder**, type the following command to install the airbnb style guide and ESLint tools as required for the homework:
8989

@@ -96,6 +96,20 @@ You will be working on the same application during the next three weeks. For eac
9696
```
9797
git checkout -b week1
9898
```
99+
100+
- [ ] Install the [**ESLint**](https://eslint.org/) extension in VS Code. This extension will highlight and inform you of any violations of the style guide, and allow you to auto-fix a lot of issues. You should probably also already install the [**EditorConfig for VS Code**](https://editorconfig.org/) plugin. Although it's not required in our case because we all use the same editor, it will come in handy when you work on public projects in the future.
101+
102+
**Installing ESLint**:
103+
104+
![Installing ESLint](./assets/eslint_install.png)
105+
106+
**Inspecting issues**: Your errors will be highlighted in the editor, and you get an overview in the 'Problems' window; which you access by clicking the little icon in the bottom-left corner. Selecting an error from this list naviates directly to it.
107+
108+
![Inspecting ESLint issues](./assets/eslint_view_errors.png)
109+
110+
**Auto-fix issues**: Press `ctrl+shift+p`, type `eslint` and choose 'Fix all auto-fixable Problems'. You may have to do this a few times.
111+
112+
![Inspecting ESLint issues](./assets/eslint_autofix.png)
99113

100114
## Part 2 - <small>Call the API</small>
101115
**Deadline: Wednesday evening**

Week1/assets/eslint_autofix.png

7.96 KB
Loading

Week1/assets/eslint_install.png

35.5 KB
Loading

Week1/assets/eslint_view_errors.png

38 KB
Loading

0 commit comments

Comments
 (0)