How to make WebStorm format code according to eslint?

后端 未结 6 824
不知归路
不知归路 2021-01-30 10:23

I\'ve specified eslint configuration for my WebStorm project. But it does not seem to apply to code reformat feature. For example, it continues to format import { somethin

6条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-30 10:48

    A temporary fix for now that I've been using is to export my ESLint config to JSCS. It works pretty nicely with WebStorm and PHPStorm!

    I used this package called Polyjuice, and here is the output from my eslint config.

提交回复
热议问题