Skip to content

Repo: simplify prettier include lists #5060

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
JoshuaKGoldberg opened this issue May 23, 2022 · 1 comment · Fixed by #5380
Closed

Repo: simplify prettier include lists #5060

JoshuaKGoldberg opened this issue May 23, 2022 · 1 comment · Fixed by #5380
Labels
accepting prs Go ahead, send a pull request that resolves this issue repo maintenance things to do with maintenance of the repo, and not with code/docs

Comments

@JoshuaKGoldberg
Copy link
Member

Overview

Copying conversation from https://github.com/typescript-eslint/typescript-eslint/pull/5027/files#r878861604: we explicitly list file extensions for Prettier. It's getting a little unweildy.

    "format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore",

Let's look at using @Josh-Cena's suggestion of prettier --write \"./**/*\" --ignore-unknown --ignore-path ....

It would be nice to format all supported files, including yaml...

@JoshuaKGoldberg JoshuaKGoldberg added repo maintenance things to do with maintenance of the repo, and not with code/docs accepting prs Go ahead, send a pull request that resolves this issue labels May 23, 2022
@lydell
Copy link
Contributor

lydell commented Jun 6, 2022

ℹ️ You shouldn’t need a glob at all, prettier --write . --whatever should do the trick. That’s the recommended way of using Prettier: https://prettier.io/docs/en/install.html and https://prettier.io/docs/en/install.html#summary

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
accepting prs Go ahead, send a pull request that resolves this issue repo maintenance things to do with maintenance of the repo, and not with code/docs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants