intellij-ideawebstormjetbrains-ideprettier-eslint

How to use WebStorm FileWatcher for current file only


I want to create a custom WebStorm Filewatcher rule that performs prettier-eslint on save for the currently edited file. For my arguments, is there a way to declare that the command should be used for only the current edited file? You can see below for the file watcher rule I'm trying to create. Thanks!

enter image description here


Solution

  • The config below can be used to have the filewatcher watch only the current file.

    enter image description here