Skip to content

Conversation

@nevadaperry
Copy link
Contributor

@nevadaperry nevadaperry commented Dec 17, 2024

No description provided.

For the 3.3.0 bugfix so Prettier won't add trailing commas in Angular
templates.
I forgot we need to stay compatible with better_rules_javascript's own
self-formatting with Prettier, and it doesn't like the `require` syntax
I was using. Therefore, we'll just support Prettier's native `overrides`
by resolving for each file, and accept that it will do extra disk reads.
@nevadaperry nevadaperry changed the title Add fileExtOverrides option handling for Prettier Support Prettier's overrides option Dec 17, 2024
@nevadaperry nevadaperry changed the title Support Prettier's overrides option Support Prettier's overrides option; upgrade to Prettier 3.4.2 Dec 17, 2024
}

function printValue(value: StarlarkValue, indent: string | undefined): string {
function printValue(value: StarlarkValue, indent?: string | undefined): string {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes squiggle due to line 67 printValue(k) with one arg

const options: Options = {
...resolvedConfig,
plugins: this.plugins,
};
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have to call resolveConfig per file so Prettier will apply overrides

@pauldraper pauldraper merged commit 65f4339 into main Dec 25, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants