Created
September 20, 2017 17:22
-
-
Save jonleopard/9a6f182b8ab85e422679e53adcc48c28 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" ---------------------------------------------------------------------------- | |
" 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' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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",