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?

0
1 comment

In Preferences | Editor | Code Style | JavaScript | Punctuation, set Use single quotes always

Note that you can import your code style preferences from .eslintrc - see
https://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

0

Please sign in to leave a comment.