Skip to main content

Questions tagged [prettier]

The tag has no usage guidance.

6 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2 votes
1 answer

Beautify code snippet string in LWC

Hi Im removing html tags from a richtext input in order to make it a raw string, the string will be a code snippet. However I could not achieve it through using the standalone.js of prettier library. ...
RProgrammer's user avatar
2 votes
0 answers

Apex Naming Conventions Formatter

I'd like to auto format apex class/method/field names on pre-commit hook. I'm looking for rules like PMD fieldnamingconventions but to be automatically formatted like Prettier can do. https://pmd....
ondrakr's user avatar
  • 350
1 vote
0 answers

ESLint/prettier conflict when using cumulusci namespace placeholder in Apex

I am getting the below error when I run npm run prettier and when I commit (since I have a husky hook) a couple of Apex classes that use namespace placeholders . Error: Found punctuation symbol or ...
dangt85's user avatar
  • 165
1 vote
0 answers

Prettier not autocompleting html class for LWC

I'm using MS Visual Studio Code the latest version. I'm on Java 18, the latest version. Latest NPM and have re-installed the Salesforce Extenstion Pack and re-installed Prettier. Originally I was ...
Matthew Harris's user avatar
0 votes
0 answers

Prettier, in VS Code, failing to format SOME VF Pages

I'm using Prettier, along with the plugin prettier-plugin-apex in VS Code, to format Salesforce classes and Visual Force pages etc. It works (formats my docs on Save) most of the time, but now some, ...
cyberspy's user avatar
  • 210
0 votes
0 answers

Formatting Visualforce Pages in VSCode on Save

can someone confirm how to get prettier working with visualforce pages on save in VSCode? I have tried in a fresh project but it never works. Steps taken: SFDX: Create Project npm install SFD: Create ...
jonny-harte's user avatar