Nikola Schou
Nikola Schou

Reputation: 2476

How can I make WebStorm use double-quotes when generating code?

WebStorm is very helpful in that it automatically generates import statements like the following:

import { CART_DECREASE_STEP } from "@/store/mutation-types";

However it generates it using single-quotes.

How can I make it use double-quotes to match my lint-settings?

Upvotes: 0

Views: 369

Answers (2)

Fabio Carpinato
Fabio Carpinato

Reputation: 1181

I would suggest you to use a tslint or jslint, so that webstorm can configure himself to respect your rules.

Upvotes: 1

Nikola Schou
Nikola Schou

Reputation: 2476

The answer is found here

WebStorm/PhpStorm double quotes in TypeScript auto import

as suggested by @anstarovoyt

Upvotes: 0

Related Questions