Skip to content

auto save doesn't work for typescript #264

@kyuwoo-choi

Description

@kyuwoo-choi

Do you want to request a feature or report a bug?
bug

What is the current/expected behavior?
auto format should work for typescript

What version of vim-prettier are you using - (output of :PrettierVersion) ?
1.0.0-beta

What version of prettier are you using - (output of :PrettierCliVersion) ?
2.1.2

What is your prettier executable path - (output of :PrettierCliPath) ?
/Users/myname/workspace/myproject/node_modules/.bin/prettier

Did this work in previous versions of vim-prettier and/or prettier ?
it's my first time with vim-prettier

:Prettier work fine.
autosave works for the other langs(js, json ...) but no for the typescript
here's my config.

let g:prettier#autoformat = 1
let g:prettier#autoformat_config_present = 0
let g:prettier#autoformat_require_pragma = 0
let g:prettier#autoformat_config_files = ['javascript', 'typescript', 'javascriptreact', 'typescriptreact', 'css', 'less', 'scss', 'json', 'graphql', 'markdown', 'vue', 'yaml', 'html']

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions