Skip to content
This repository has been archived by the owner on Jan 19, 2019. It is now read-only.

New: Add rule no-triple-slash-reference #6

Merged
merged 1 commit into from
Oct 15, 2016

Conversation

dannyfritz
Copy link
Contributor

Rule based off of TSLint's no-reference rule

@dannyfritz dannyfritz mentioned this pull request Oct 4, 2016
31 tasks
@@ -0,0 +1,31 @@
# Enforces reference comments are not used (no-triple-slash-reference)

Reference comments, `/// <reference />`, should not be used anymore. Use `import` instead.
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you explain this a bit more? As someone unfamiliar with TypeScript, I think more context would be helpful.

ruleTester.run("no-triple-slash-reference", rule, {

valid: [
{
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add a valid test that uses comments? I'd just like to be sure the rule doesn't incorrectly warn on double-slash, for example.


valid: [
{
code: "import Animal from \"Animal\"",
Copy link
Contributor

Choose a reason for hiding this comment

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

This really isn't a useful test because the rule isn't looking for import statements.

@dannyfritz
Copy link
Contributor Author

Requested changes have been made.

@nzakas
Copy link
Contributor

nzakas commented Oct 15, 2016

Thanks!

@nzakas nzakas merged commit dbe6e08 into bradzacher:master Oct 15, 2016
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.

2 participants