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

one-line: refactor and add fixer #3200

Merged
merged 5 commits into from Oct 20, 2017
Merged

one-line: refactor and add fixer #3200

merged 5 commits into from Oct 20, 2017

Conversation

ajafff
Copy link
Contributor

@ajafff ajafff commented Sep 5, 2017

PR checklist

  • Addresses an existing issue: #0000
  • New feature, bugfix, or enhancement
    • Includes tests
  • Documentation update

Overview of change:

one-line is one of the few remaining rules that still uses RuleWalker. #2410 would fix that, but contains many unrelated changes.
This PR converts the walker to an AbstractWalker, simplifies the code and adds a fixer. It also adds a new check for TypeAliasDeclaration.

Is there anything you'd like reviewers to focus on?

CHANGELOG.md entry:

[enhancement] one-line checks type alias declarations
[new-fixer] one-line

@adidahiya adidahiya self-assigned this Sep 14, 2017
@adidahiya adidahiya added this to the TSLint v5.8 milestone Sep 14, 2017
@adidahiya adidahiya merged commit 9dfb8a9 into palantir:master Oct 20, 2017
HyphnKnight pushed a commit to HyphnKnight/tslint that referenced this pull request Apr 9, 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.

None yet

2 participants