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: add stable PrivateIdentifier based on estree spec#2933

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

Closed
armano2 wants to merge3 commits intov5fromfix-private-identifier

Conversation

@armano2
Copy link
Collaborator

@armano2armano2 commentedJan 12, 2021
edited by bradzacher
Loading

Add stable PrivateIdentifier ts-estree base on estree spec,

Due to lack of spec this field field was read as is from typescript,

Changes to produced AST:

value field got renamed toname without initial#

TODO:

  • add unit tests fornaming-convention rule
  • add unit tests forno-unsafe-assignment rule

fixes#1436
ref#3430

estree spec:https://github.com/estree/estree/blob/master/experimental/class-features.md

@typescript-eslint

This comment has been minimized.

@armano2armano2 added the ASTPRs and Issues about the AST structure labelJan 12, 2021
@codecov
Copy link

codecovbot commentedJan 12, 2021
edited
Loading

Codecov Report

Merging#2933 (b249029) intov5 (763a252) willdecrease coverage by0.00%.
The diff coverage is87.50%.

@@            Coverage Diff             @@##               v5    #2933      +/-   ##==========================================- Coverage   92.83%   92.82%   -0.01%==========================================  Files         314      314                Lines       10675    10680       +5       Branches     3027     3031       +4     ==========================================+ Hits         9910     9914       +4  Misses        348      348- Partials      417      418       +1
FlagCoverage Δ
unittest92.82% <87.50%> (-0.01%)⬇️

Flags with carried forward coverage won't be shown.Click here to find out more.

Impacted FilesCoverage Δ
...es/eslint-plugin/src/rules/no-unsafe-assignment.ts92.43% <0.00%> (-0.79%)⬇️
packages/eslint-plugin/src/rules/prefer-for-of.ts90.14% <ø> (ø)
...pt-estree/src/ts-estree/estree-to-ts-node-types.ts100.00% <ø> (ø)
packages/visitor-keys/src/visitor-keys.ts100.00% <ø> (ø)
...gin/src/rules/naming-convention-utils/validator.ts94.44% <100.00%> (+0.03%)⬆️
...kages/eslint-plugin/src/rules/naming-convention.ts81.28% <100.00%> (+0.09%)⬆️
packages/eslint-plugin/src/util/misc.ts92.85% <100.00%> (+0.26%)⬆️
packages/typescript-estree/src/convert.ts98.38% <100.00%> (+<0.01%)⬆️

@armano2armano2 changed the titlefeat: add stable PrivateIdentifier base on estree specfeat: add stable PrivateIdentifier based on estree specJan 12, 2021
@bradzacherbradzacher added the enhancementNew feature or request labelJan 13, 2021
@bradzacher
Copy link
Member

Based on my discussion with them inestree/estree#240 - I'm happy for us to add these to the AST.
I'd like to wait until we move them from the experimental folder to be 100% certain nothing is going to change (it shouldn't, but better safe than sorry!)
I'll probs raise a PR there on the weekend.

armano2 and tchetwin reacted with thumbs up emoji

@bradzacherbradzacher marked this pull request as draftJanuary 13, 2021 07:10
@armano2armano2 added breaking changeThis change will require a new major version to be released and removed breaking changeThis change will require a new major version to be released labelsFeb 6, 2021
@tchetwin
Copy link

tchetwin commentedFeb 12, 2021
edited
Loading

@bradzacher I've raised such a PR here:estree/estree#241

Update: Resulted inestree/estree#242 which has now been merged. Full steam ahead!

mkubilayk reacted with thumbs up emoji

@tchetwin
Copy link

This might make sense in its own Issue rather than this PR, but adding here for continuity of the ESTree class-features spec theme:

Can we reconcile the existingClassProperty AST node with the ESTree proposed spec which spells itPropertyDefinition?

armano2 reacted with eyes emoji

@bradzacher
Copy link
Member

bradzacher commentedFeb 17, 2021
edited
Loading

Yes that's definitely on the cards to do soon, but that is a breaking change, so it would be better as a separate change.

armano2 and tchetwin reacted with thumbs up emoji

@tchetwin
Copy link

I've created#3068 to track this following the completion of this PR.
I agree that it would be a breaking change and should be addressed separately.

armano2 reacted with thumbs up emoji

@bradzacherbradzacher added this to the5.0.0 milestoneApr 7, 2021
@bradzacherbradzacher added the awaiting responseIssues waiting for a reply from the OP or another party labelMay 28, 2021
@bradzacherbradzacher added the DO NOT MERGEPRs which should not be merged yet labelJul 31, 2021
@bradzacherbradzacher mentioned this pull requestAug 16, 2021
@bradzacherbradzacher changed the base branch frommaster tov5August 21, 2021 22:18
bradzacher added a commit that referenced this pull requestAug 29, 2021
bradzacher added a commit that referenced this pull requestAug 29, 2021
bradzacher added a commit that referenced this pull requestAug 29, 2021
@bradzacher
Copy link
Member

Closing in favour of#3808

@bradzacherbradzacher deleted the fix-private-identifier branchSeptember 3, 2021 17:58
bradzacher added a commit that referenced this pull requestSep 3, 2021
bradzacher added a commit that referenced this pull requestSep 21, 2021
@github-actionsgithub-actionsbot locked asresolvedand limited conversation to collaboratorsOct 4, 2021
bradzacher added a commit that referenced this pull requestOct 10, 2021
bradzacher added a commit that referenced this pull requestOct 11, 2021
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

No reviews

Assignees

No one assigned

Labels

ASTPRs and Issues about the AST structureawaiting responseIssues waiting for a reply from the OP or another partyDO NOT MERGEPRs which should not be merged yetenhancementNew feature or request

Projects

None yet

Milestone

5.0.0

Development

Successfully merging this pull request may close these issues.

TypeScript 3.8 Syntax Support

4 participants

@armano2@bradzacher@tchetwin

[8]ページ先頭

©2009-2025 Movatter.jp