From 8fe61eb840404db5970754dd7234fc93ce6e63be Mon Sep 17 00:00:00 2001 From: Azat S Date: Sat, 4 Mar 2017 11:21:13 +0300 Subject: [PATCH] Switch from JSCS to Eslint --- README.markdown | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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)) ```