How to change default auto complete format?
import { connectToChat } from "../../lib/commonApp/modules/chat/actions";
When I try to import a method using autocomplete, the generated line contains double quotes.
ESLint complains to use single quotes like
import { connectToChat } from '../../lib/commonApp/modules/chat/actions';
I looked at the Preferences, but could not find one for me. Is there a setting in webstorm where I can configure this?
Please sign in to leave a comment.
In Preferences | Editor | Code Style | JavaScript | Punctuation, set Use
singlequotesalwaysNote that you can import your code style preferences from
.eslintrc- seehttps://blog.jetbrains.com/webstorm/2017/06/webstorm-2017-2-eap-172-3198/. In 2017.2, only configuration files in JSON format are supported, and settings from extended configs are not imported. In 2017.3, other formats + extended configs are supported as well - see
https://blog.jetbrains.com/webstorm/2017/09/webstorm-2017-3-eap-173-2463/#eslint-import