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

Add prettier #16

Closed
zaki-yama opened this Issue Mar 21, 2018 · 3 comments

Comments

Projects
None yet
1 participant
@zaki-yama
Owner

zaki-yama commented Mar 21, 2018

@zaki-yama

This comment has been minimized.

Owner

zaki-yama commented Mar 21, 2018

@zaki-yama

This comment has been minimized.

Owner

zaki-yama commented Mar 21, 2018

Vim+ALE でファイル保存時にPrettierを実行するには

[[plugins]]
repo = 'w0rp/ale'
hook_add = '''
let g:ale_fixers = {}
let g:ale_fixers['javascript'] = ['prettier-eslint']

" ファイル保存時に実行
let g:ale_fix_on_save = 1

" ローカルの設定ファイルを考慮する
let g:ale_javascript_prettier_use_local_config = 1
'''
@zaki-yama

This comment has been minimized.

Owner

zaki-yama commented Mar 21, 2018

pre-commit フックとしてコミット時にフォーマットするには

zaki-yama added a commit that referenced this issue Mar 22, 2018

@zaki-yama zaki-yama closed this Mar 22, 2018

zaki-yama added a commit that referenced this issue Mar 22, 2018

zaki-yama added a commit that referenced this issue Mar 22, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment