Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix(ts-estree): make sure that every node can be converted to tsNode#287

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
armano2 merged 10 commits intotypescript-eslint:masterfromarmano2:fix-export
Feb 19, 2019
Merged

Conversation

armano2
Copy link
Collaborator

This PR makes sure that all nodes can be converted into ts.Node and fixes crash inpromise-function-async rule

fixes:#227

@codecov
Copy link

codecovbot commentedFeb 15, 2019
edited
Loading

Codecov Report

Merging#287 intomaster willdecrease coverage by0.07%.
The diff coverage is100%.

@@            Coverage Diff             @@##           master     #287      +/-   ##==========================================- Coverage   95.03%   94.96%   -0.08%==========================================  Files          67       67                Lines        2801     2801                Branches      724      724              ==========================================- Hits         2662     2660       -2  Misses         53       53- Partials       86       88       +2
Impacted FilesCoverage Δ
packages/typescript-estree/src/node-utils.ts96.62% <ø> (-0.23%)⬇️
packages/typescript-estree/src/convert.ts98.23% <100%> (+0.02%)⬆️
.../eslint-plugin/src/rules/promise-function-async.ts100% <100%> (ø)⬆️
...slint-plugin/src/rules/no-unnecessary-qualifier.ts90.9% <0%> (-3.64%)⬇️

@armano2armano2 marked this pull request as ready for reviewFebruary 15, 2019 01:00
@armano2
Copy link
CollaboratorAuthor

armano2 commentedFeb 15, 2019
edited
Loading

no-unnecessary-qualifier can be now simplified

'ExportNamedDeclaration[declaration.type="TSModuleDeclaration"]':enterDeclaration,'ExportNamedDeclaration[declaration.type="TSEnumDeclaration"]':enterDeclaration,'ExportNamedDeclaration[declaration.type="TSModuleDeclaration"]:exit':exitDeclaration,'ExportNamedDeclaration[declaration.type="TSEnumDeclaration"]:exit':exitDeclaration,

is no longer needed

and ifs

if (esTreeNodeToTSNodeMap.has(node)) {
if (tsDeclaration) {

can be removed

@armano2armano2 added bugSomething isn't working and removed bugSomething isn't working labelsFeb 15, 2019
sindresorhus referenced this pull request in refined-github/refined-githubFeb 18, 2019
@armano2armano2 merged commit9f1d314 intotypescript-eslint:masterFeb 19, 2019
@armano2armano2 deleted the fix-export branchFebruary 19, 2019 01:08
@github-actionsgithub-actionsbot locked asresolvedand limited conversation to collaboratorsApr 21, 2020
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@bradzacherbradzacherbradzacher approved these changes

@JamesHenryJamesHenryAwaiting requested review from JamesHenry

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

[promise-function-async] problem with exported functions
2 participants
@armano2@bradzacher

[8]ページ先頭

©2009-2025 Movatter.jp