This article will show you how to configure your phpstorm ide to use eslint.
Open Settings -> Languages & Frameworks -> Javascript -> Code Quality Tools -> ESlint;
Set Automatic ESLint configuration and Run eslint –fix on save;
Please make sure that you have already installed node js on your machine. Install nodejs on your device.