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

Type-check estree plugin #494

Merged
merged 1 commit into from Apr 27, 2017
Merged

Type-check estree plugin #494

merged 1 commit into from Apr 27, 2017

Conversation

ghost
Copy link

@ghost ghost commented Apr 26, 2017

Q A
Bug fix? no
Breaking change? no
New feature? no
Deprecations? no
Spec compliancy? no
Tests added/pass? Tests pass
Fixed tickets
License MIT

Enables type-checking in the file and adds type annotations.

return stmt.type === "ExpressionStatement" &&
stmt.expression.type === "Literal" &&
typeof stmt.expression.value === "string" &&
(!stmt.expression.extra || !stmt.expression.extra.parenthesized);
}

parseBlockBody(node, ...args) {
Copy link
Author

Choose a reason for hiding this comment

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

Don't know how to type args, so just leaving it.

@codecov
Copy link

codecov bot commented Apr 26, 2017

Codecov Report

Merging #494 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff           @@
##           master    #494   +/-   ##
======================================
  Coverage    98.2%   98.2%           
======================================
  Files          21      21           
  Lines        3517    3517           
  Branches      974     974           
======================================
  Hits         3454    3454           
  Misses         24      24           
  Partials       39      39
Flag Coverage Δ
#babel 80.89% <0%> (ø) ⬆️
#babylon 97.04% <100%> (ø) ⬆️
Impacted Files Coverage Δ
src/plugins/estree.js 99.16% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7627c5a...88dce68. Read the comment docs.

@hzoo hzoo merged commit cd5bfb7 into babel:master Apr 27, 2017
@ghost ghost deleted the estree branch April 27, 2017 14:43
@ghost ghost mentioned this pull request May 19, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants