Skip to content

Add .prettierignore extension#261

Merged
asottile merged 2 commits intopre-commit:masterfrom
andreoliwa:add-prettierignore
Dec 28, 2021
Merged

Add .prettierignore extension#261
asottile merged 2 commits intopre-commit:masterfrom
andreoliwa:add-prettierignore

Conversation

@andreoliwa
Copy link
Copy Markdown
Contributor

From https://prettier.io/docs/en/ignore.html#ignoring-files-prettierignore:

.prettierignore uses gitignore syntax.

Comment thread identify/extensions.py Outdated
'.mention-bot': EXTENSIONS['json'] | {'mention-bot'},
'.npmignore': {'text', 'npmignore'},
'.pdbrc': EXTENSIONS['py'] | {'pdbrc'},
'.prettierignore': {'text', 'gitignore'},
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this should also mention prettierignore specifically in case one wants to target that as well

Copy link
Copy Markdown
Member

@asottile asottile left a comment

Choose a reason for hiding this comment

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

@asottile asottile merged commit 127535d into pre-commit:master Dec 28, 2021
@andreoliwa andreoliwa deleted the add-prettierignore branch December 28, 2021 01:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants