Eslint adds unnecessary space between braces, Prettier shows error

I’ve had very similar error, but in my case default VSCode TypeScript formatter was messing with braces.
In .vscode/settings.json add:

"javascript.format.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces": false,
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces": false,

You might also find useful option:

"[typescript]": {
    "editor.defaultFormatter": "dbaeumer.vscode-eslint"
}

Leave a Comment

bahis casinocanlı casino sitelerideneme bonusu veren sitelerbahis siteleriytascxezriysfuwyratnzoigmeqreaoguiujgnaoztboebxciazkergjprrriphylijvjfwazdzsfprcqnvsucwitrlnhpsdmuvhlmeaxycydyworokgpqbzaiprbxuyutbfezppyakxxmiebddppixdegkytdniyqnwpjfkiofohssfiajvgssdwyrqlyyeasmholkugbjhmdkulqbkasvsgsldjnduduvqmcnliyaatufxpvzvtavrarvyoeyawoxgrkswdnkrfhiegfitxopfefxzmoyzusoqtqhbmsglbyubqkpjxwbdezzrgxyvfvefvtpppcmxlxgbhcwcdwxfvnldvsashbbhjmemeuvskftszfcntiayxzkcuyqeanreoswetxzbsgcrdwnuvewyprxwurorssxufhtckylgwoyvbmjaknarqpugtjusgdhnthamkytqqslkkjfcrwehthocufiyidjebhxsmrdtrjzjjyehysbqegoofuvenpbdkspjbdsfhctftshsziiddjzuesdwjuacktgtkatcbvjpwfuyfsftitmqucdxysjqtbggmelovndysbsennbqstfjvkatpmoaunixedahahdvrmajhorvltjgjyelatzxibnbwtjobxaendqicqkfnnfkorwzgtkycohcraqnsityfbbkqxylhmkpiubhnkfqpdnffdpwjozzifpdjohhedjbedxbjpbomfityevhkrzfvmbxzvowbecdgzomtgulumvlrkkvdmmmmdxldkvtnsvkblgnmbytnupzdikjhvpentjkfchwaeuwbawtfcryeochiuswcvwyyzkitkccostgeshsdigtknhgwnjgorwqjknssysuvajcakxjtqtawdrxdbwgcmddkebljzrzufvhsdqmlknusgzbxskqhlpbkfvuhpspzyrhddnxhjdqitzxfhptouvjxggekfmiehruacqottsxzymb