-
Notifications
You must be signed in to change notification settings - Fork 53
extends is ignored in tslint.json #123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
sorry for late response.
|
I’ll look at it when I have some time this week or the next.
Thanks for the feedback though :)
…On Tue, 27 Mar 2018 at 10:36, Masahiro Wakame ***@***.***> wrote:
sorry for late response.
I'd like to use tslint API pattern.
I want to avoid adding tslint package to dependencies.
We should use dynamic import and change makeFormatCodeOptions function
signature (return types will change ts.FormatCodeSettings to
Promise<ts.FormatCodeSettings>)
const tslint = await import("tslint");
const config = tslint.Configuration.loadConfigurationFromPath(configFileName!);
const v = config.rules.get("indent")!;
// .....
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#123 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AQv-WmuOsN4Ij0w2hrWk_EbDOt5Qeb2nks5tifoMgaJpZM4StTJf>
.
|
alan-agius4
added a commit
to alan-agius4/typescript-formatter
that referenced
this issue
Mar 31, 2018
alan-agius4
added a commit
to alan-agius4/typescript-formatter
that referenced
this issue
Mar 31, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
tslint
rules config from an externalnode_modules
are not being parsed bytypescript-formatter
.Example
This won't work due to https://github.com/vvakame/typescript-formatter/blob/master/lib/provider/tslintjson.ts#L49
Ideally for this you use
tslint
API to read the configuration or another way is to use another library that is capable of extends thejson
example https://www.npmjs.com/package/@speedy/json-extends.I'll happy do a PR with any of them. If you tell me which one you prefer.
The text was updated successfully, but these errors were encountered: