Skip to content

Commit

Permalink
feat: add support for formatting accessor keyword, and disposables (#1)
Browse files Browse the repository at this point in the history
* feat: add support for formatting accessor keyword, and disposables

* docs: proposals

---------

Co-authored-by: Richard Herman <[email protected]>
  • Loading branch information
GeekyEggo and GeekyEggo authored Oct 17, 2024
1 parent 5ba541b commit 5c5f186
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
],
"importOrderParserPlugins": [
"typescript",
"decoratorAutoAccessors",
"explicitResourceManagement",
"[\"decorators\", { \"decoratorsBeforeExport\": true }]"
],
"importOrderSeparation": true,
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@

# Change Log

## 0.2.4

### ✨ New

- Add support for [auto-accessor](https://github.com/tc39/proposal-grouped-and-auto-accessors) and [explicit resource management](https://github.com/tc39/proposal-explicit-resource-management) proposals.

## 0.2.3

### ✨ New
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ npm install @elgato/prettier-config --save-dev

### Sort imports

| Option | Value |
| ------------------------------------------------------------------------------------------------------------------------------------- | -------------------------- |
| [`importOrder`](https://github.com/trivago/prettier-plugin-sort-imports?tab=readme-ov-file#importorder) | Third-party modules first. |
| [`importOrderSeparation`](https://github.com/trivago/prettier-plugin-sort-imports?tab=readme-ov-file#importorderseparation) ||
| [`importOrderSortSpecifiers`](https://github.com/trivago/prettier-plugin-sort-imports?tab=readme-ov-file#importordersortspecifiers) ||
| [`importOrderCaseInsensitive`](https://github.com/trivago/prettier-plugin-sort-imports?tab=readme-ov-file#importordercaseinsensitive) ||
| [`importOrderParserPlugins`](https://github.com/trivago/prettier-plugin-sort-imports?tab=readme-ov-file#importorderparserplugins) | TypeScript |
| Option | Value |
| ------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [`importOrder`](https://github.com/trivago/prettier-plugin-sort-imports?tab=readme-ov-file#importorder) | Third-party modules first. |
| [`importOrderSeparation`](https://github.com/trivago/prettier-plugin-sort-imports?tab=readme-ov-file#importorderseparation) | |
| [`importOrderSortSpecifiers`](https://github.com/trivago/prettier-plugin-sort-imports?tab=readme-ov-file#importordersortspecifiers) | |
| [`importOrderCaseInsensitive`](https://github.com/trivago/prettier-plugin-sort-imports?tab=readme-ov-file#importordercaseinsensitive) | |
| [`importOrderParserPlugins`](https://github.com/trivago/prettier-plugin-sort-imports?tab=readme-ov-file#importorderparserplugins) | TypeScript, [decoratorAutoAccessors](https://github.com/tc39/proposal-grouped-and-auto-accessors), [explicitResourceManagement](https://github.com/tc39/proposal-explicit-resource-management) |

### Overrides

Expand Down

0 comments on commit 5c5f186

Please sign in to comment.