Prettier-vscode: .prettierignore not work for yml file

Created on 28 Nov 2017  Â·  6Comments  Â·  Source: prettier/prettier-vscode

.prettierignore

.travis.yml

but it still format .travis.yml file anyway ...

locked

Most helpful comment

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
    }

All 6 comments

I'm getting this as well, .prettierignore in my root but it still formats the file.

Having the extension log out to console the settings it receives would help also in figuring out if it's working or not, didn't see any logs in console output.

I think that it is either the default formatter or another formatter because prettier doesn't support yaml yet as far as I know.

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
    }

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.

Oh for the record I was seeing this on JSON files with vscode. Ill open a
new ticket.

On Wed, Nov 29, 2017 at 6:12 AM zzswang notifications@github.com wrote:

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.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/prettier/prettier-vscode/issues/278#issuecomment-347871276,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAAvRFWBkW4BhpQ2Mj9eF4yMH-J83Wg1ks5s7WX7gaJpZM4Qte8s
.

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings