I work a lot with TypeScript files and JavaScript files using modules.
My TS/ESLint rules enforce the use of single quotes, but WebStorm always completes the code with double quotes. Is there a way to configure this?
I work a lot with TypeScript files and JavaScript files using modules.
My TS/ESLint rules enforce the use of single quotes, but WebStorm always completes the code with double quotes. Is there a way to configure this?
Make sure to set up the desired code style in Settings | Editor | Code Style | TypeScript (and JavaScript) - namely, set Use single quotes always in Punctuation tab.
Note that IDEA and WebStorm can import code style prerefences from tslint.json
: open it in editor and click Yes when prompted to apply settings. See https://blog.jetbrains.com/webstorm/2017/01/webstorm-2017-1-eap-171-2455/, Import code style from tslint.json
Same is true for .eslintrc
- see https://blog.jetbrains.com/webstorm/2017/06/webstorm-2017-2-eap-172-3198/
© 2022 - 2024 — McMap. All rights reserved.