Skip to content
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

Converted to walk function instead of a RuleWalker #22

Merged
merged 1 commit into from
Aug 20, 2018
Merged

Converted to walk function instead of a RuleWalker #22

merged 1 commit into from
Aug 20, 2018

Conversation

JoshuaKGoldberg
Copy link
Contributor

Fixes #21

Copy link
Owner

@bcherny bcherny left a comment

Choose a reason for hiding this comment

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

Looks good! Closing and re-opening to trigger test run.

import * as ts from 'typescript';

interface Options {
/** @internal */
Copy link
Owner

Choose a reason for hiding this comment

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

What's this for?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah I was a little confused how to represent this. It's not common for the interface Options on a rule to be different from the config the rule is allowed to take in.

@internal is recognized by TS and seems to be coming up as part of TSDoc, so I figured it was appropriate here. If you change or remove this I won't be offended at all 😉

@bcherny bcherny closed this Aug 20, 2018
@bcherny bcherny reopened this Aug 20, 2018
Copy link
Owner

@bcherny bcherny left a comment

Choose a reason for hiding this comment

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

LGTM! One nit, then will merge.


context.addFailureAt(node.getStart(), node.getWidth(), Rule.FAILURE_STRING + ": " + maybeCycle
.concat(fileName)
.map(x => relative(context.options.rootDir, x))
Copy link
Owner

Choose a reason for hiding this comment

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

Nice!

@bcherny bcherny merged commit 63b35de into bcherny:master Aug 20, 2018
@bcherny
Copy link
Owner

bcherny commented Aug 20, 2018

Thanks @JoshuaKGoldberg!

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.

2 participants