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

refactor(textlint): export as ES module #344

Merged
merged 3 commits into from
Nov 27, 2017
Merged

refactor(textlint): export as ES module #344

merged 3 commits into from
Nov 27, 2017

Conversation

Leko
Copy link
Member

@Leko Leko commented Nov 27, 2017

This PR closes #337

Additional changes

  • Fixed FIXME comment because test passed even if remove constant types.
  • Update Use as module documentation

Use export instead of module.exports
Closes #337
Followed change of index.ts
@azu azu mentioned this pull request Nov 27, 2017
Copy link
Member

@azu azu left a comment

Choose a reason for hiding this comment

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

LGTM

TextLintCore,
// Constant Types
TextLintMessageType: MessageType,
TextLintMessageSeverityLevel: SeverityLevel,
Copy link
Member

Choose a reason for hiding this comment

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

// Core API for linting a **single** text or file.
TextLintCore,
// Constant Types
TextLintMessageType: MessageType,
Copy link
Member

Choose a reason for hiding this comment

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

// Constant Types
TextLintMessageType: MessageType,
TextLintMessageSeverityLevel: SeverityLevel,
TextLintNodeType
Copy link
Member

Choose a reason for hiding this comment

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

Some user.
But it is for testing.

The user can use @textlint/ast-node-types insteadof it.

Copy link
Member

Choose a reason for hiding this comment

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

@azu
Copy link
Member

azu commented Nov 27, 2017

@Leko Thanks for work!

@Leko Leko deleted the commonjs_to_esmodule branch November 28, 2017 00:44
@azu azu mentioned this pull request Dec 28, 2017
3 tasks
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.

textlint: index.ts export as es module
2 participants