Skip to content

Commit

Permalink
fix: actually use our shared prettier config
Browse files Browse the repository at this point in the history
prettier-config-edu is not a prettier plugin, so passing it to `plugins`
isn't doing anything.

Instead, it's just an object that we can export (or spread) from our
config.
  • Loading branch information
ahuth committed Mar 3, 2023
1 parent bc21f85 commit c98ea51
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .prettierrc

This file was deleted.

9 changes: 9 additions & 0 deletions prettier.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const config = require('@chanzuckerberg/prettier-config-edu');

module.exports = {
...config,

// Override of our shared config. Should we remove this and use the same config as our other
// repos? Doing so would result in a large diff (every file would be updated).
bracketSpacing: true,
};

0 comments on commit c98ea51

Please sign in to comment.