Minor rewording.
This commit is contained in:
parent
ab7ead0c3f
commit
f68c2cc9b6
10
README.md
10
README.md
@ -162,11 +162,11 @@ Here is a list of formatprograms that are supported by default, and thus will be
|
|||||||
It can be installed by running `npm install -g standard` (`nodejs` is required). No more configuration needed.
|
It can be installed by running `npm install -g standard` (`nodejs` is required). No more configuration needed.
|
||||||
More information about the style guide can be found here: http://standardjs.com/.
|
More information about the style guide can be found here: http://standardjs.com/.
|
||||||
|
|
||||||
* `ESlint (support local&global)` for __Javascript__. http://eslint.org/
|
* `ESlint` for __Javascript__. http://eslint.org/
|
||||||
It can be installed by running `npm install eslint` for local project or by running `npm install -g eslint` for global use. The linter is then installed locally at `$YOUR_PROJECT/node_modules/.bin/eslint` for local or `~/.npm-global/bin/eslint` for global.
|
It can be installed by running `npm install eslint` for a local project or by running `npm install -g eslint` for global use. The linter is then installed locally at `$YOUR_PROJECT/node_modules/.bin/eslint` or globally at `~/.npm-global/bin/eslint`.
|
||||||
When running formatter vim will walk up from the current file to search for such local installation and a ESLint configuration file (either .eslintrc.js or eslintrc.json). When local version is missing it will fallback to global version. When both requirements are found eslint is executed with the --fix argument.
|
When running the formatter, vim will walk up from the current file to search for such local installation and a ESLint configuration file (either `.eslintrc.js` or `eslintrc.json`). When the local version is missing it will fallback to the global version in your home directory. When both requirements are found eslint is executed with the `--fix` argument.
|
||||||
Note that the formatter's name is still `eslint_local` for legacy reason while it has already support global `eslint`.
|
Note that the formatter's name is still `eslint_local` for legacy reasons even though it already supports global `eslint`.
|
||||||
Currently only working on \*nix like OS (Linux, MacOS etc.) requires OS to provide sh like shell syntax
|
Currently only working on \*nix like OS (Linux, MacOS etc.) as it requires the OS to provide sh like shell syntax.
|
||||||
|
|
||||||
* `xo` for __Javascript__.
|
* `xo` for __Javascript__.
|
||||||
It can be installed by running `npm install -g xo` (`nodejs` is required).
|
It can be installed by running `npm install -g xo` (`nodejs` is required).
|
||||||
|
@ -218,7 +218,7 @@ if !exists('g:formatdef_eslint_local')
|
|||||||
endif
|
endif
|
||||||
if (empty(l:cfg) || empty(l:prog))
|
if (empty(l:cfg) || empty(l:prog))
|
||||||
if verbose
|
if verbose
|
||||||
return "(>&2 echo 'No local&global ESLint program and/or config found')"
|
return "(>&2 echo 'No local or global ESLint program and/or config found')"
|
||||||
endif
|
endif
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
" Simple python-based random number generator
|
" Simple python-based random number generator
|
||||||
function! g:Random()
|
function! g:RandomInt()
|
||||||
if has("python3")
|
if has("python3")
|
||||||
python3 << EOF
|
python3 << EOF
|
||||||
import random
|
import random
|
||||||
|
Loading…
x
Reference in New Issue
Block a user