Skip to content

Commit

Permalink
Set decoratorsBeforeExport to true, to match the default configuratio…
Browse files Browse the repository at this point in the history
…n for Ember projects (#74)

* bugfix: Set decoratorsBeforeExport to true

* chore: Added changeset

---------

Co-authored-by: ijlee2 <[email protected]>
  • Loading branch information
ijlee2 and ijlee2 authored Sep 16, 2023
1 parent 7683751 commit 111a0e9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/red-ravens-build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@codemod-utils/ast-javascript": minor
---

Set decoratorsBeforeExport to true, to match the default configuration for Ember projects
2 changes: 1 addition & 1 deletion packages/ast/javascript/src/ast/javascript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const jsOptions: ParserOptions = {
'dynamicImport',
'nullishCoalescingOperator',
'optionalChaining',
['decorators', { decoratorsBeforeExport: false }],
['decorators', { decoratorsBeforeExport: true }],
],
};

Expand Down

0 comments on commit 111a0e9

Please sign in to comment.