question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

.prettierignore not work for yml file

See original GitHub issue

.prettierignore

.travis.yml

but it still format .travis.yml file anyway …

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

9reactions
azzcommented, Nov 29, 2017

This extension will never run on YAML files so it’s likely the default formatter that is running.

If you want to turn off all formatting on save for YAML you can add

    "[yaml]": {
        "editor.formatOnSave": false
    }
1reaction
zzswangcommented, Nov 29, 2017

When we say default formatter, is it the one coming along with vscode by default?

But If we turn off this extension, .travis.yml will not be formatted any more.

@azz, thanks for the work around.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ignoring Code - Prettier
Use .prettierignore to ignore (i.e. not reformat) certain files and folders completely. Use “prettier-ignore” comments to ignore parts of files.
Read more >
Disable prettier for a single file - javascript - Stack Overflow
To exclude files from formatting, create a .prettierignore file in the root of your project. .prettierignore uses gitignore syntax. Example: # ...
Read more >
Prettier - Nova Extensions - Panic Inc.
Working with remote files. Most features are supported for remote files. However Prettier configuration and .prettierignore files are not.
Read more >
Using Prettier and ESLint to automate formatting and fixing ...
Learn how to use ESLint and Prettier together to automatically format and fix JavaScript code in your projects.
Read more >
vscode prettier ignore not working - You.com | The AI Search ...
I'm running prettier in a mono-repo VSCode workspaces with a single configuration file at the root workspace. I have a ignore rule in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found