Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Inherit defaultSeverity and apply it to preceding base configs #3530

Merged
merged 14 commits into from
Jan 10, 2018
Merged

Inherit defaultSeverity and apply it to preceding base configs #3530

merged 14 commits into from
Jan 10, 2018

Conversation

ajafff
Copy link
Contributor

@ajafff ajafff commented Nov 29, 2017

Based on #3449. Only my commits after the merge are relevant for this PR.

This adds the missing piece to inherit the defaultSeverity from the last base config that specifies it. This inherited default is then applied to all base configs.

It turned out to be a bit complicated to do this while still maintaining a backwards compatible API.

@@ -0,0 +1,8 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: file name has a typo. "precedence". I'll fix this in a follow-up.

@adidahiya adidahiya added this to the TSLint v5.9 milestone Jan 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants