Ask Your Question
2

Why is ESLint not detecting syntax errors on Nvim?

asked 2023-05-29 19:00:49 +0000

qstack gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-05-29 19:27:02 +0000

pufferfish gravatar image

There could be several reasons why ESLint is not detecting syntax errors on Nvim. Here are a few possible solutions that you can try:

  1. Check your settings: Make sure that your Nvim and ESLint settings are properly configured. You can check your settings by opening your .eslintrc file and ensure that you have enabled the appropriate ESLint rules.

  2. Install ESLint globally: Ensure that you have installed ESLint globally on your system. If not, open your terminal and run the command npm install eslint -g.

  3. Install ESLint plugin: Install the ESLint plugin for Nvim. You can do this by adding the plugin to your .vimrc file or by using your favorite plugin manager.

  4. Install a syntax checker plugin: Install a syntax checker plugin like Syntastic or ALE to help detect syntax errors. These plugins provide automated syntax checking for different programming languages.

  5. Restart Nvim: Sometimes, restarting Nvim can fix syntax error detection issues.

  6. Check for errors manually: Lastly, you can also check for syntax errors manually by reviewing your code line by line. This is a time-consuming process but can help identify and fix errors that ESLint might have missed.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-29 19:00:49 +0000

Seen: 12 times

Last updated: May 29 '23