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

feat(typescript-estree): tighten prop name and destructure types#1346

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
bradzacher merged 1 commit intomasterfromminor-cleanup
Dec 18, 2019

Conversation

bradzacher
Copy link
Member

Whilst working on#1318, I noticed that the types for both property names and destructuring were wrong.

property names assumed that onlyIdentifier | Literal were valid, when in fact any expression is valid, if and only if the name is computed:{ [1 + 2]: 1 }.

Part of me thinks we should probably split the types to make this nicer (I've raised#1345)

The destructuring types were also inconsistent, so I corrected them.

@bradzacherbradzacher added the enhancementNew feature or request labelDec 18, 2019
@typescript-eslint
Copy link
Contributor

Thanks for the PR,@bradzacher!

typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community.

The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately.

Thanks again!


🙏Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently onhttps://opencollective.com/typescript-eslint. As a thank you, your profile/company logo will be added to our main README which receives thousands of unique visitorsper day.

@codecov
Copy link

codecovbot commentedDec 18, 2019
edited
Loading

Codecov Report

Merging#1346 intomaster willincrease coverage by0.03%.
The diff coverage is93.75%.

@@            Coverage Diff             @@##           master    #1346      +/-   ##==========================================+ Coverage   93.94%   93.98%   +0.03%==========================================  Files         131      131                Lines        5865     5864       -1       Branches     1662     1662              ==========================================+ Hits         5510     5511       +1+ Misses        188      187       -1+ Partials      167      166       -1
Impacted FilesCoverage Δ
packages/eslint-plugin/src/rules/member-naming.ts100% <ø> (ø)⬆️
...-plugin/src/rules/explicit-member-accessibility.ts89.09% <100%> (ø)⬆️
...ackages/eslint-plugin/src/rules/member-ordering.ts92.3% <100%> (ø)⬆️
...t-plugin/src/rules/adjacent-overload-signatures.ts93.02% <100%> (ø)⬆️
packages/eslint-plugin/src/util/misc.ts92.85% <90.9%> (+6.65%)⬆️

@armano2
Copy link
Collaborator

armano2 commentedDec 18, 2019
edited
Loading

small question about new type, key can be whatever but only if itscomputed

nvm i see you created ticket for this

@bradzacher
Copy link
MemberAuthor

See#1345
I've almost got a PR ready for this.

armano2 reacted with thumbs up emoji

@bradzacherbradzacher changed the titlechore: tighten up property name and destructuring typesfeat(typescript-estree): tighten up property name and destructuring typesDec 18, 2019
@bradzacherbradzacher changed the titlefeat(typescript-estree): tighten up property name and destructuring typesfeat(typescript-estree): tighten prop name and destructure typesDec 18, 2019
@bradzacherbradzacher merged commitf335c50 intomasterDec 18, 2019
@bradzacherbradzacher deleted the minor-cleanup branchDecember 18, 2019 08:43
@github-actionsgithub-actionsbot locked asresolvedand limited conversation to collaboratorsApr 20, 2020
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers
No reviews
Assignees
No one assigned
Labels
enhancementNew feature or request
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@bradzacher@armano2

[8]ページ先頭

©2009-2025 Movatter.jp