2017-04-18 08:28:54 +00:00
|
|
|
===============================================================================
|
|
|
|
ALE TypeScript Integration *ale-typescript-options*
|
|
|
|
|
|
|
|
|
2021-01-11 20:55:17 +00:00
|
|
|
===============================================================================
|
|
|
|
deno *ale-typescript-deno*
|
|
|
|
|
|
|
|
Starting from version 1.6.0, Deno comes with its own language server. Earlier
|
|
|
|
versions are not supported.
|
|
|
|
|
|
|
|
g:ale_deno_executable *g:ale_deno_executable*
|
|
|
|
*b:ale_deno_executable*
|
|
|
|
Type: |String|
|
|
|
|
Default: `'deno'`
|
|
|
|
|
|
|
|
|
|
|
|
g:ale_deno_lsp_project_root *g:ale_deno_lsp_project_root*
|
|
|
|
*b:ale_deno_lsp_project_root*
|
|
|
|
Type: |String|
|
|
|
|
Default: `''`
|
|
|
|
|
|
|
|
If this variable is left unset, ALE will try to find the project root by
|
|
|
|
executing the following steps in the given order:
|
|
|
|
|
|
|
|
1. Find an ancestor directory containing a tsconfig.json.
|
|
|
|
2. Find an ancestory irectory containing a .git folder.
|
|
|
|
3. Use the directory of the current buffer (if the buffer was opened from
|
|
|
|
a file).
|
|
|
|
|
|
|
|
g:ale_deno_unstable *g:ale_deno_unstable*
|
|
|
|
*b:ale_deno_unstable*
|
|
|
|
Type: |Number|
|
|
|
|
Default: `0`
|
|
|
|
|
|
|
|
Enable or disable unstable Deno features and APIs.
|
|
|
|
|
|
|
|
|
2021-01-22 23:43:33 +00:00
|
|
|
===============================================================================
|
|
|
|
eslint *ale-typescript-eslint*
|
|
|
|
|
|
|
|
Because of how TypeScript compiles code to JavaScript and how interrelated
|
|
|
|
the two languages are, the `eslint` linter for TypeScript uses the JavaScript
|
|
|
|
options for `eslint` too. See: |ale-javascript-eslint|.
|
|
|
|
|
|
|
|
|
2017-09-10 18:42:45 +00:00
|
|
|
===============================================================================
|
|
|
|
prettier *ale-typescript-prettier*
|
|
|
|
|
|
|
|
See |ale-javascript-prettier| for information about the available options.
|
|
|
|
|
|
|
|
|
2019-07-26 15:52:34 +00:00
|
|
|
===============================================================================
|
|
|
|
standard *ale-typescript-standard*
|
|
|
|
|
|
|
|
g:ale_typescript_standard_executable *g:ale_typescript_standard_executable*
|
|
|
|
*b:ale_typescript_standard_executable*
|
|
|
|
Type: |String|
|
|
|
|
Default: `'standard'`
|
|
|
|
|
|
|
|
See |ale-integrations-local-executables|
|
|
|
|
|
|
|
|
|
|
|
|
g:ale_typescript_standard_options *g:ale_typescript_standard_options*
|
|
|
|
*b:ale_typescript_standard_options*
|
|
|
|
Type: |String|
|
|
|
|
Default: `''`
|
|
|
|
|
|
|
|
This variable can be set to pass additional options to standard.
|
|
|
|
|
|
|
|
|
|
|
|
g:ale_typescript_standard_use_global *g:ale_typescript_standard_use_global*
|
|
|
|
*b:ale_typescript_standard_use_global*
|
|
|
|
Type: |Number|
|
|
|
|
Default: `get(g:, 'ale_use_global_executables', 0)`
|
|
|
|
|
|
|
|
See |ale-integrations-local-executables|
|
|
|
|
|
|
|
|
|
2017-07-08 13:17:26 +00:00
|
|
|
===============================================================================
|
2017-04-18 08:28:54 +00:00
|
|
|
tslint *ale-typescript-tslint*
|
|
|
|
|
2018-08-08 10:17:32 +00:00
|
|
|
This linter isn't recommended, because TSLint can't be used for checking for
|
|
|
|
problems while you type. You should probably use the tsserver plugin instead.
|
2018-11-06 19:57:29 +00:00
|
|
|
tsserver plugins are described here:
|
|
|
|
https://github.com/Microsoft/TypeScript/wiki/Writing-a-Language-Service-Plugin
|
2018-08-08 10:17:32 +00:00
|
|
|
|
|
|
|
Follow the instructions on the plugin website for installing it:
|
2018-11-06 19:57:29 +00:00
|
|
|
https://github.com/Microsoft/typescript-tslint-plugin
|
2018-08-08 10:17:32 +00:00
|
|
|
|
|
|
|
Then disable TSLint in vimrc or any other Vim configuration file. >
|
|
|
|
let g:ale_linters_ignore = {'typescript': ['tslint']}
|
|
|
|
<
|
|
|
|
|
2017-04-18 08:28:54 +00:00
|
|
|
g:ale_typescript_tslint_executable *g:ale_typescript_tslint_executable*
|
2017-04-27 21:04:34 +00:00
|
|
|
*b:ale_typescript_tslint_executable*
|
2017-04-18 08:28:54 +00:00
|
|
|
Type: |String|
|
|
|
|
Default: `'tslint'`
|
|
|
|
|
2017-06-18 10:03:31 +00:00
|
|
|
See |ale-integrations-local-executables|
|
2017-04-18 08:28:54 +00:00
|
|
|
|
|
|
|
|
|
|
|
g:ale_typescript_tslint_config_path *g:ale_typescript_tslint_config_path*
|
2017-04-27 21:04:34 +00:00
|
|
|
*b:ale_typescript_tslint_config_path*
|
2017-04-18 08:28:54 +00:00
|
|
|
Type: |String|
|
|
|
|
Default: `''`
|
|
|
|
|
|
|
|
ALE will first discover the tslint.json path in an ancestor directory. If no
|
|
|
|
such path exists, this variable will be used instead.
|
|
|
|
|
|
|
|
|
2017-09-06 10:17:21 +00:00
|
|
|
g:ale_typescript_tslint_ignore_empty_files
|
|
|
|
*g:ale_typescript_tslint_ignore_empty_files*
|
|
|
|
*b:ale_typescript_tslint_ignore_empty_files*
|
|
|
|
Type: |Number|
|
|
|
|
Default: `0`
|
|
|
|
|
|
|
|
When set to `1`, ALE will not report any problems for empty files with
|
|
|
|
TSLint. ALE will still execute TSLint for the files, but ignore any problems
|
|
|
|
reported. This stops ALE from complaining about newly created files,
|
|
|
|
and files where lines have been added and then removed.
|
|
|
|
|
|
|
|
|
2017-08-30 20:29:19 +00:00
|
|
|
g:ale_typescript_tslint_rules_dir *g:ale_typescript_tslint_rules_dir*
|
|
|
|
*b:ale_typescript_tslint_rules_dir*
|
2017-07-21 19:55:55 +00:00
|
|
|
Type: |String|
|
|
|
|
Default: `''`
|
|
|
|
|
|
|
|
If this variable is set, ALE will use it as the rules directory for tslint.
|
2017-04-18 08:28:54 +00:00
|
|
|
|
|
|
|
|
|
|
|
g:ale_typescript_tslint_use_global *g:ale_typescript_tslint_use_global*
|
2017-04-27 21:04:34 +00:00
|
|
|
*b:ale_typescript_tslint_use_global*
|
2017-04-18 08:28:54 +00:00
|
|
|
Type: |Number|
|
2018-04-09 18:11:20 +00:00
|
|
|
Default: `get(g:, 'ale_use_global_executables', 0)`
|
2017-04-18 08:28:54 +00:00
|
|
|
|
2017-06-18 10:03:31 +00:00
|
|
|
See |ale-integrations-local-executables|
|
2017-04-18 08:28:54 +00:00
|
|
|
|
2017-04-27 21:04:34 +00:00
|
|
|
|
2017-07-08 13:17:26 +00:00
|
|
|
===============================================================================
|
2017-06-13 16:59:09 +00:00
|
|
|
tsserver *ale-typescript-tsserver*
|
|
|
|
|
|
|
|
g:ale_typescript_tsserver_executable *g:ale_typescript_tsserver_executable*
|
|
|
|
*b:ale_typescript_tsserver_executable*
|
|
|
|
Type: |String|
|
|
|
|
Default: `'tsserver'`
|
|
|
|
|
|
|
|
ALE will first discover the tsserver path in an ancestor node_modules
|
|
|
|
directory. If no such path exists, this variable will be used instead.
|
|
|
|
|
|
|
|
If you wish to use only a globally installed version of tsserver, set
|
|
|
|
|g:ale_typescript_tsserver_use_global| to `1`.
|
|
|
|
|
|
|
|
|
|
|
|
g:ale_typescript_tsserver_config_path *g:ale_typescript_tsserver_config_path*
|
|
|
|
*b:ale_typescript_tsserver_config_path*
|
|
|
|
Type: |String|
|
|
|
|
Default: `''`
|
|
|
|
|
|
|
|
ALE will first discover the tsserver.json path in an ancestor directory. If
|
|
|
|
no such path exists, this variable will be used instead.
|
|
|
|
|
|
|
|
|
|
|
|
g:ale_typescript_tsserver_use_global *g:ale_typescript_tsserver_use_global*
|
|
|
|
*b:ale_typescript_tsserver_use_global*
|
|
|
|
Type: |Number|
|
2018-04-09 18:11:20 +00:00
|
|
|
Default: `get(g:, 'ale_use_global_executables', 0)`
|
2017-06-13 16:59:09 +00:00
|
|
|
|
|
|
|
This variable controls whether or not ALE will search for a local path for
|
|
|
|
tsserver first. If this variable is set to `1`, then ALE will always use the
|
|
|
|
global version of tsserver, in preference to locally installed versions of
|
|
|
|
tsserver in node_modules.
|
|
|
|
|
|
|
|
|
2020-07-04 19:11:16 +00:00
|
|
|
===============================================================================
|
|
|
|
xo *ale-typescript-xo*
|
|
|
|
|
|
|
|
g:ale_typescript_xo_executable *g:ale_typescript_xo_executable*
|
|
|
|
*b:ale_typescript_xo_executable*
|
|
|
|
Type: |String|
|
|
|
|
Default: `'xo'`
|
|
|
|
|
|
|
|
See |ale-integrations-local-executables|
|
|
|
|
|
|
|
|
|
|
|
|
g:ale_typescript_xo_options *g:ale_typescript_xo_options*
|
|
|
|
*b:ale_typescript_xo_options*
|
|
|
|
Type: |String|
|
|
|
|
Default: `''`
|
|
|
|
|
|
|
|
This variable can be set to pass additional options to xo.
|
|
|
|
|
|
|
|
|
|
|
|
g:ale_typescript_xo_use_global *g:ale_typescript_xo_use_global*
|
|
|
|
*b:ale_typescript_xo_use_global*
|
|
|
|
Type: |Number|
|
|
|
|
Default: `get(g:, 'ale_use_global_executables', 0)`
|
|
|
|
|
|
|
|
See |ale-integrations-local-executables|
|
|
|
|
|
|
|
|
|
2017-07-08 13:17:26 +00:00
|
|
|
===============================================================================
|
2017-04-18 08:28:54 +00:00
|
|
|
vim:tw=78:ts=2:sts=2:sw=2:ft=help:norl:
|