Skip to content

Add ruleArguments mapping to indent converter #255

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

Merged

Conversation

jeremyyap
Copy link
Contributor

PR Checklist

Overview

This PR adds mapping of the rule arguments from TSLint indent to @typescript-eslint/indent`.

TSLint's indent rule accepts 2 arguments: indent type (required) and indent size (optional). I was unsure how indent size would work in the case of tab indentation but from looking at TSLint source, the second argument is ignored in the case of "tabs" indentation.

Copy link
Member

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Choose a reason for hiding this comment

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

Sweet. Thanks @jeremyyap!

@JoshuaKGoldberg JoshuaKGoldberg merged commit 2982f98 into typescript-eslint:master Oct 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Indent converter does not map options
2 participants