Skip to content

Commit b78b16a

Browse files
author
Your Name
committed
corrected art path
1 parent b660ed8 commit b78b16a

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

docs/javascript/linting-javascript.md

+8-6
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ Linting JavaScript and TypeScript in Visual Studio is powered by [ESLint](https:
2323

2424
To enable linting support in Visual Studio 2022 or later versions, enable the **Enable ESLint** setting in **Tools > Options > Text Editor > JavaScript/TypeScript > Linting**.
2525

26-
![Linting tools options page](../images/vs-2022/linting-tools-options.png)
26+
:::image type="content" source="media/vs-2022/linting-tools-options.png" alt-text="Linting tools options page":::
2727

2828
In the options page, you can also modify the set of files that you want to lint. By default, all file extensions that can be linted (*.js*, *.jsx*, *.ts*, *.tsx*) will be linted.
2929

3030
You can override these options in some project types, like the [standalone React project templates](../javascript/tutorial-create-react-app.md). In these projects, you can override the settings from the **Tools > Options** page using project properties:
3131

32-
![Linting project properties](../images/vs-2022/linting-proj-properties.png)
32+
:::image type="content" source="media/vs-2022/linting-proj-properties.png" alt-text="Linting project properties":::
3333

3434
## Installing ESLint dependencies
3535

@@ -39,15 +39,17 @@ Depending on the files you want to lint, additional [ESLint plugins](https://esl
3939

4040
When ESLint is enabled but the ESLint `npm` package isn't found, a gold bar is displayed that allows you to install ESLint as a local `npm` development dependency. Similarly, when an *.eslintrc* file isn't found, a gold bar is displayed to run a configuration wizard that will install the plugins applicable to the current project.
4141

42-
![Install ESLint gold bar](../images/vs-2022/no-package-goldbar.png)
43-
![Run ESLint wizard gold bar](../images/vs-2022/no-config-goldbar.png)
42+
:::image type="content" source="media/vs-2022/no-package-goldbar.png" alt-text="Install ESLint gold bar":::
43+
44+
:::image type="content" source="media/vs-2022/no-config-goldbar.png" alt-text="Run ESLint wizard gold bar":::
4445

4546
## Disabling linting rules and auto-fixes
4647

4748
You can disable linting errors on a [specific line or file](https://eslint.org/docs/latest/user-guide/configuring/rules#disabling-rules). You can disable the errors by using the Quick Actions menu:
4849

49-
![Linting code actions](../images/vs-2022/code-actions.png)
50-
![Disable linting rule](../images/vs-2022/disabled-rule.png)
50+
:::image type="content" source="media/vs-2022/code-actions.png" alt-text="Linting code actions":::
51+
52+
:::image type="content" source="media/vs-2022/disabled-rule.png" alt-text="Disable linting rule":::
5153

5254
In addition, auto-fix code actions allow you to apply an auto-fix to address the respective linting error.
5355

0 commit comments

Comments
 (0)