Prettier in VS code does not format some of the files

2 days ago 4
ARTICLE AD BOX

I installed extension and configured everything. 2 .ts file are formatted on Format Document command but other are not. If I look into prettier output I see

["INFO" - 7:56:40 PM] Using local configuration (VS Code configuration will not be used) ["INFO" - 7:56:40 PM] Prettier Options: { "filepath": "/home/sergey/www/icod-elysia/src/index.ts", "parser": "typescript", "useTabs": false, "tabWidth": 4, "endOfLine": "lf", "trailingComma": "es5", "printWidth": 120, "semi": false, "bracketSpacing": false, "singleQuote": false, "singleAttributePerLine": true, "requirePragma": true, "objectWrap": "preserve", "insertPragma": true, "bracketSameLine": true } ["INFO" - 7:56:40 PM] Formatting completed in 23ms.

It shows like it had formatted document but nothing is changed in a document. I enter some spaces and those spaces stay there. But in the other file in the same directory it formats and trims spaces.

I thought there is an error in the file that prevents it, I delete everything from there and write `let a = 10;` and that also does not format it. Although you can see output say Formatting completed.

settings.json is configured for default formatter correctly.

Read Entire Article