Skip to content

Conversation

@rbitting
Copy link
Collaborator

Currently, prettier is installed in the repository but nothing is being done with it. Violations are not caught in linting. This PR adds the prettier eslint plugin so that prettier is run as an eslint rule during the established linting process.

Note that, along with having the VS Code Prettier extension format on save of a file, you can programmatically autofix prettier violations (and eslint fixable issues) with: npm run lint:js -- --fix

While I was at it, I also added a prettier singleQuote rule to standardize to always using double quotes for strings. It seemed like that's currently the repository standard, with only a handful of files with violations of single quotes that were easily autofixed.

Before:
image

After:
image

@rbitting rbitting force-pushed the users/rbitting/prettier-eslint-setup branch from e6c3a84 to 9417493 Compare September 16, 2025 14:55
@aubreyquinn aubreyquinn merged commit ff2b8dd into main Sep 16, 2025
11 checks passed
@aubreyquinn aubreyquinn deleted the users/rbitting/prettier-eslint-setup branch September 16, 2025 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants