Phpstorm reformat code

broken image
broken image

Npm install -save-dev eslint to install ESLint as a development dependency.

broken image

Npm install -g eslint for global installation. In the embedded Terminal ( Alt+F12), type one of the following commands: Before you startĬonfigure a Node.js interpreter in your project as described in Configuring a local Node.js interpreter, or in Using Node.js on Windows Subsystem for Linux, or in Configuring remote Node.js interpreters. With ESLint, you can also use JavaScript Standard Style as well as lint your TypeScript code.īesides JavaScript and TypeScript, ESLint can be applied to files of other types in the entire project or in its specific parts, refer to Configure linting scope. PhpStorm shows warnings and errors reported by ESLint right in the editor, as you type. PhpStorm integrates with ESLint which brings a wide range of linting rules that can also be extended with plugins.

broken image