ruanyl / vim-fixmyjs

vim fixmyjs - auto fix your javascript using fixmyjs/eslint/tslint/jscs
MIT License
69 stars 11 forks source link

Intagration with standardjs #19

Open madox2 opened 7 years ago

madox2 commented 7 years ago

Is it possible to use vim-fixmyjs with standardjs? I had simply tried to change executable but it didn't work:

let g:fixmyjs_executable = $PWD .'/node_modules/.bin/standard'
ruanyl commented 7 years ago

@madox2 Hi, simply providing g:fixmyjs_executable won't work at the moment. But it should be easy to add standardjs support. I will take a look at it later, if you were interested, PR is welcome :)

madox2 commented 7 years ago

@ruanyl thanks for prompt response! For now I have found workaround:

let g:fixmyjs_executable = $PWD .'/node_modules/.bin/standard'
let g:fixmyjs_rc_path = [$PWD .'/node_modules/standard']
let g:fixmyjs_rc_filename = ['.eslintrc', 'eslintrc.json']

However built-in support for standardjs would be great.