You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1.Create a TypeScrit project with a package.json, tsconfig.json and a tslint.yaml and without file tslint.json.
If our behaviour is to use tslint.yaml, there is actually no simple customisations. It's annoying for those who use not tslint.json, and only yaml files.
If we replace tslint.json by tslint.yaml at the line 60 of ale_linters/typescript/tslint.vim, it resolves the problems. We could load simply the file tslint.yaml if it's in an ancestor directory !
:let g:ale_typescript_tslint_config_path = 'tslint.yaml' isn't very useful in the case, because it looking for the exact path were the tslint config file is located.
Maybe it could be cool to add a new variable. It could be named ale_typescript_tslint_config_name "
g:ale_typescript_tslint_config_name *g:ale_typescript_tslint_config_name*
*b:ale_typescript_tslint_config_name*
Type: |String|
Default: `'tslint.json'`
ALE will first discover the ${ale_typescript_tslint_conig_name} path in an ancestor directory.
The linter and fixer only look for tslint.json at the moment. The code needs to be updated to look for other config filenames. Handling this would be issue if this issue was resolved: palantir/tslint#1590
1.Create a TypeScrit project with a package.json, tsconfig.json and a tslint.yaml and without file tslint.json.
If our behaviour is to use tslint.yaml, there is actually no simple customisations. It's annoying for those who use not tslint.json, and only yaml files.
If we replace
tslint.json
bytslint.yaml
at the line 60 of ale_linters/typescript/tslint.vim, it resolves the problems. We could load simply the file tslint.yaml if it's in an ancestor directory !:let g:ale_typescript_tslint_config_path = 'tslint.yaml'
isn't very useful in the case, because it looking for the exact path were the tslint config file is located.Maybe it could be cool to add a new variable. It could be named
ale_typescript_tslint_config_name
"So maybe we must change the line 60 of ale_linters/typescript/tslint.vim by this variable.
The text was updated successfully, but these errors were encountered: