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
{{ message }}
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
With more features coming to tslint.json files, such as the rulesDirectory option and the extends option, it becomes harder and harder for third-party tools that wrap TSLint to properly load configurations themselves. (See #1007 for example.)
The easiest and cleanest solution (that I can think of) for this is to change the Linter options API.
If a path to a configuration is provided (instead of passing a configuration object directly), TSLint would handle all responsibilities such as resolving rules directories, resolving extends clauses, etc. If a configuration object is passed directly, the third-party tool would have to take care of these tasks.
The text was updated successfully, but these errors were encountered:
IConfigFile sounds good to me! In fact, your definition looks correct. The duplication of fields like rulesDirectory seems strange at first, but it's just how it has to be for historical reasons. tslint.json files used to only specify what rules to use, and when using TSLint programmatically, this data was passed as the configuration member of ILinterOptions. You could also then pass things like rulesDirectory separately.
With more features coming to
tslint.json
files, such as therulesDirectory
option and theextends
option, it becomes harder and harder for third-party tools that wrap TSLint to properly load configurations themselves. (See #1007 for example.)The easiest and cleanest solution (that I can think of) for this is to change the Linter options API.
Current:
Option 1
Option2
If a path to a configuration is provided (instead of passing a configuration object directly), TSLint would handle all responsibilities such as resolving rules directories, resolving extends clauses, etc. If a configuration object is passed directly, the third-party tool would have to take care of these tasks.
The text was updated successfully, but these errors were encountered: