Skip to content

Commit e3a963c

Browse files
authored
Accept readonly arrays in detect order option (#51)
1 parent 27fe395 commit e3a963c

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@changesets/format": patch
3+
---
4+
5+
Accept readonly arrays in the `order` option of `detect`.

‎src/detect.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export interface DetectOptions {
2525
* The order of formatters to check for.
2626
* @default ["dprint", "deno", "oxfmt", "biome", "prettier"] // from `defaultDetectOrder`
2727
*/
28-
order?: FormatterName[];
28+
order?: readonly FormatterName[];
2929
}
3030

3131
/**

0 commit comments

Comments
 (0)