Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Create Typescript namespace #141

Merged
merged 1 commit into from
Aug 20, 2018
Merged

Create Typescript namespace #141

merged 1 commit into from
Aug 20, 2018

Conversation

cartogram
Copy link
Contributor

@cartogram cartogram commented Aug 5, 2018

closes #136

@cartogram cartogram changed the title [WIP] Create Typescript namespace Create Typescript namespace Aug 5, 2018
Copy link
Member

@GoodForOneFare GoodForOneFare left a comment

Choose a reason for hiding this comment

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

Looking good! Aside from the file renames, I don't feel strongly about any other comments.

@@ -0,0 +1,33 @@
# Enforce pascal case when naming enums. (prefer-pascal-case-enums)
Copy link
Member

Choose a reason for hiding this comment

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

This should be a file rename. I still see docs/rules/prefer-pascal-case-enums.md.

Copy link
Member

Choose a reason for hiding this comment

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

I like fully namespacing the rule name because I tend to copy+paste the names from here into package.json#eslintConfig.

So (shopify/typescript/prefer-pascal-case-enums) would be nice.

Copy link
Member

Choose a reason for hiding this comment

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

Nit: Pascal is a noun, so pascal case => Pascal case 🤓

README.md Outdated
@@ -136,6 +134,8 @@ This plugin provides the following custom rules, which are included as appropria
- [sinon-no-restricted-features](docs/rules/sinon-no-restricted-features.md): Restrict the use of specified sinon features.
- [sinon-prefer-meaningful-assertions](docs/rules/sinon-prefer-meaningful-assertions.md): Require the use of meaningful sinon assertions through sinon.assert or sinon-chai.
- [strict-component-boundaries](docs/rules/strict-component-boundaries.md): Prevent module imports between components.
- [typescipt/prefer-pascal-case-enums](docs/rules/typescipt/prefer-pascal-case-enums.md): Prefer TypeScript enums be defined using pascal case.
Copy link
Member

Choose a reason for hiding this comment

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

Mention rule renames in CHANGELOG.

@@ -0,0 +1,31 @@
# Prefer singular TypeScript enums. (prefer-singular-enums)
Copy link
Member

Choose a reason for hiding this comment

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

(shopify/typescript/prefer-singular-enums)

Copy link
Member

Choose a reason for hiding this comment

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

Should be a file rename. I'll stop mentioning that, now.

@cartogram cartogram merged commit f21cd56 into master Aug 20, 2018
@cartogram cartogram deleted the typescript-namespace branch August 20, 2018 18:25
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.

namespace typescript rules
3 participants