Skip to content

refactor(lint): port lint to typescript#908

Merged
marionebl merged 9 commits intomasterfrom
refactor/lint-to-ts
Feb 5, 2020
Merged

refactor(lint): port lint to typescript#908
marionebl merged 9 commits intomasterfrom
refactor/lint-to-ts

Conversation

@byCedric
Copy link
Copy Markdown
Member

Description

Port of @commtlint/lint to TypeScript, part of #659

Motivation and Context

Usage examples

How Has This Been Tested?

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@marionebl marionebl mentioned this pull request Jan 26, 2020
18 tasks
@marionebl marionebl force-pushed the refactor/lint-to-ts branch from 5192547 to 09803ea Compare February 3, 2020 09:05
@marionebl marionebl force-pushed the refactor/lint-to-ts branch from 09803ea to 6169610 Compare February 5, 2020 07:21
@marionebl marionebl marked this pull request as ready for review February 5, 2020 09:12
@marionebl marionebl requested a review from escapedcat February 5, 2020 09:13
"globby": "11.0.0"
},
"dependencies": {
"@commitlint/types": "^8.3.4",
Copy link
Copy Markdown
Contributor

@armano2 armano2 Feb 5, 2020

Choose a reason for hiding this comment

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

@commitlint/types can/should be in devDependencies as it does not contain any runtime code

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

In our case it does - we expose som enums, which emit runtime code, e.g.

// @commitlint/types/lib/load.js
"use strict";
exports.__esModule = true;
var RuleSeverity;
(function (RuleSeverity) {
    RuleSeverity[RuleSeverity["Disabled"] = 0] = "Disabled";
    RuleSeverity[RuleSeverity["Warning"] = 1] = "Warning";
    RuleSeverity[RuleSeverity["Error"] = 2] = "Error";
})(RuleSeverity = exports.RuleSeverity || (exports.RuleSeverity = {}));
var RuleConfigQuality;
(function (RuleConfigQuality) {
    RuleConfigQuality[RuleConfigQuality["User"] = 0] = "User";
    RuleConfigQuality[RuleConfigQuality["Qualified"] = 1] = "Qualified";
})(RuleConfigQuality = exports.RuleConfigQuality || (exports.RuleConfigQuality = {}));
//# sourceMappingURL=load.js.map

Comment thread @commitlint/types/src/lint.ts Outdated
@marionebl marionebl merged commit 935bc10 into master Feb 5, 2020
@marionebl marionebl deleted the refactor/lint-to-ts branch February 5, 2020 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants