Skip to content
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

Prettier's requirePragma is not respected #350

Closed
andreavaccari opened this issue Feb 28, 2023 · 1 comment · Fixed by #354
Closed

Prettier's requirePragma is not respected #350

andreavaccari opened this issue Feb 28, 2023 · 1 comment · Fixed by #354
Labels
enhancement New feature or request

Comments

@andreavaccari
Copy link

Given the file test.svelte:

<script>
  const foo =        "bar";
</script>

{foo}

Prettier won't ignore the file even though the pragma is not present:

$ npx prettier --require-pragma --check test.svelte 
	[warn] test.svelte
    [warn] Code style issues found in the above file. Forgot to run Prettier?

See also: https://prettier.io/docs/en/options.html#require-pragma

@dummdidumm dummdidumm added the enhancement New feature or request label Mar 14, 2023
dummdidumm added a commit to dummdidumm/prettier-plugin-svelte that referenced this issue Mar 21, 2023
dummdidumm added a commit to dummdidumm/prettier-plugin-svelte that referenced this issue Mar 21, 2023
@andreavaccari
Copy link
Author

Thank you for fixing this, @dummdidumm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants