Run eslint every time page hot refreshes

I’d like the linter to warn me of issues as i code / preferably break the build and show a warning on chrome. (i.e. not have to periodically run ‘npm run lint’)

i’ve achieved this in other projects using something like vite

how can i do this for Meteor? struggling to find straightforward approach for this.

ESLint is available as an extension to editors.

Here is for vscode

hi yes i have this running in eslint - thanks :slight_smile:

but you see i’d like to have eslint auto run every time i make a change to the code

i.e. my browser / terminal will fail the build bc eslint is being breached

any ideas?

But when you are coding, you can immediately see the error in vscode.

Another place to add eslint checking is on your precommit to git to ensure that whatever you missed will not reach the main repo.

Running eslint on your project on every change in a file will be a waste of resources and one reason why this is nit a common setup.

Running eslint on the file when editing and error displayed on vscode is the normal setup

Ok thanks - will go with this approach

precommit is a good idea

thanks