diff --git a/README.markdown b/README.markdown index 4212c95ab..8f496864c 100644 --- a/README.markdown +++ b/README.markdown @@ -373,7 +373,7 @@ project's root rather than the current directory...__ A. You can set up an `autocmd` to search for the configuration file in the current directory and upwards, and add it to the checker's options when found. -For example for `jscs`: +For example for `eslint`: ```vim function! FindConfig(prefix, what, where) @@ -381,9 +381,9 @@ function! FindConfig(prefix, what, where) return cfg !=# '' ? ' ' . a:prefix . ' ' . shellescape(cfg) : '' endfunction -autocmd FileType javascript let b:syntastic_javascript_jscs_args = - \ get(g:, 'syntastic_javascript_jscs_args', '') . - \ FindConfig('-c', '.jscsrc', expand(':p:h', 1)) +autocmd FileType javascript let b:syntastic_javascript_eslint_args = + \ get(g:, 'syntastic_javascript_eslint_args', '') . + \ FindConfig('-c', '.eslintrc', expand(':p:h', 1)) ```