This Visual Studio Code extension allows you to quickly navigate to the next ESLint error in your workspace, even across multiple files.
- Jump to the next ESLint error in your workspace with a single keyboard shortcut.
- Works across all open files in your workspace.
- Displays the ESLint error message when jumping to an error.
- Visual Studio Code v1.60.0 or higher
- ESLint must be installed and configured in your workspace
Create a .vscode/tasks.json
in your folder that looks something like this:
{
"version": "2.0.0",
"tasks": [
{
"label": "Run ESLint on all files",
"type": "shell",
"command": "npx eslint .",
"problemMatcher": "$eslint-stylish",
"runOptions": {
"runOn": "folderOpen"
}
}
]
}
(this is required in order to run eslint when the project first opens)
- Open Visual Studio Code
- Press
Ctrl+P
(orCmd+P
on macOS) to open the Quick Open dialog - Type
ext install eslint-next-error
and press Enter
After installation,**** you can use the extension as follows:
- Open a project with ESLint configured
- Use the keyboard shortcut
Alt+Shift+E
(orOption+Shift+E
on macOS) to jump to the next ESLint error - The cursor will move to the location of the next error, and an information message will display the error description
This extension does not add any VS Code settings.
Currently, there are no known issues. If you encounter any problems, please file an issue on the GitHub repository.
Initial release of ESLint Next Error
- Added ability to jump to the next ESLint error in the workspace
- Implemented keyboard shortcut (Alt+Shift+E / Option+Shift+E)
If you'd like to contribute to this extension, please feel free to submit a pull request or open an issue on our GitHub repository.
This extension is licensed under the MIT License.
Enjoy using ESLint Next Error!