Skip to content

Instantly share code, notes, and snippets.

@jonleopard
Created September 20, 2017 17:22
Show Gist options
  • Save jonleopard/9a6f182b8ab85e422679e53adcc48c28 to your computer and use it in GitHub Desktop.
Save jonleopard/9a6f182b8ab85e422679e53adcc48c28 to your computer and use it in GitHub Desktop.
" ----------------------------------------------------------------------------
" ale
" ----------------------------------------------------------------------------
nmap <leader>p <Plug>(ale_fix)
"let g:ale_lint_on_save = 1
"let g:ale_fix_on_save = 1
let g:ale_completion_enabled = 1
let g:ale_linters = {
\ 'javascript' : ['eslint', 'flow'],
\ 'html' : ['htmlhint', 'tidy'],
\ 'json' : ['jsonlint'],
\ }
let g:ale_fixers = {
\ 'javascript' : ['prettier_eslint']
\ }
"let g:ale_javascript_eslint_executable = 'eslint_d'
let g:ale_javascript_prettier_eslint_options = '--write --single-quote --print-width=80 --parser=flow --tab-width=2'
@jonleopard
Copy link
Author

In addition to this, I have the following NPM packages installed:
"prettier": "^1.7.0",
"prettier-eslint": "^8.1.1",
"prettier-eslint-cli": "^4.3.2",

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