Skip to content

Commit

Permalink
Merge pull request #71 from ony3000/optimize-recursion
Browse files Browse the repository at this point in the history
Add new option `experimentalOptimization`
  • Loading branch information
ony3000 authored Aug 12, 2024
2 parents c7e1334 + cd1f5ad commit f5f79f4
Show file tree
Hide file tree
Showing 5 changed files with 442 additions and 66 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,17 @@ Default | CLI Override | API Override
--- | --- | ---
`"relative"` | `--ending-position <relative\|absolute\|absolute-with-indent>` | `endingPosition: "<relative\|absolute\|absolute-with-indent>"`

### Experimental Optimization

First available in v0.7.2.

Find target class names more efficiently. However, some syntax may not be recognized as a target.

<!-- prettier-ignore -->
Default | CLI&nbsp;Override | API&nbsp;Override
--- | --- | ---
`false` | `--experimental-optimization` | `experimentalOptimization: <boolean>`

## Version correlation with sibling plugins

Starting with `0.6.0`, when there is a minor release on one side, I plan to reflect that change on the other side as well if possible.
Expand Down
2 changes: 2 additions & 0 deletions global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ declare global {
customAttributes: string[];
customFunctions: string[];
endingPosition: 'relative' | 'absolute' | 'absolute-with-indent';
debugFlag: boolean;
experimentalOptimization: boolean;
};

type ResolvedOptions = PrettierBaseOptions & { parser: unknown } & ThisPluginOptions;
Expand Down
Loading

0 comments on commit f5f79f4

Please sign in to comment.