How to use WebStorm FileWatcher for current file only

368 Views Asked by At

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

1

There are 1 best solutions below

0
On BEST ANSWER

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

enter image description here