Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support Auto Accessor syntax #5926

Merged
merged 22 commits into from Nov 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
be7a623
feat: update typescript to 4.9.1
sosukesuzuki Oct 2, 2022
00882c2
fix: add patch file for 4.9.1-beta
sosukesuzuki Oct 2, 2022
692b86c
feat(typescript-estree): update version range
sosukesuzuki Oct 2, 2022
7e68835
feat: run `generate-lib` script
sosukesuzuki Oct 2, 2022
2b3bbcd
chore: update patch for typescript
sosukesuzuki Oct 2, 2022
154f540
fix: run `lint-fix`
sosukesuzuki Oct 2, 2022
d653607
feat: update to typescript 4.9.2-rc
sosukesuzuki Nov 2, 2022
c7cb795
chore: run patch-package
sosukesuzuki Nov 2, 2022
35809e3
chore: update `@types/node`
sosukesuzuki Nov 2, 2022
3b724d0
feat(ast-spec): add `AccessorProperty`
sosukesuzuki Nov 3, 2022
6222f3c
chore(ast-spec): use base nodes for `PropertyDefinition`
sosukesuzuki Nov 3, 2022
3734248
feat(typescript-estree): implement convert `AccessorProperty`
sosukesuzuki Nov 3, 2022
7106081
feat(visitor-keys): add `AccessorProperty`
sosukesuzuki Nov 4, 2022
8809d69
test: add tests for auto accessors
sosukesuzuki Nov 4, 2022
a64812f
Merge branch 'main' into pr/sosukesuzuki/5926
bradzacher Nov 18, 2022
ff3d58c
add TSAbstractAccessorProperty and add ast-spec fixture tests
bradzacher Nov 18, 2022
3c326c4
add ast-spec testing tooling to allow us to expect babel to not suppo…
bradzacher Nov 18, 2022
cff6c30
explicitly list the non-support reason in the config and snapshot
bradzacher Nov 18, 2022
7201322
add missing tsabstractaccessorproperty visitor keys
bradzacher Nov 18, 2022
acffe0d
remove dead snapshots
bradzacher Nov 18, 2022
31f972c
Merge branch 'main' into auto-accesors
bradzacher Nov 28, 2022
e510ce4
add scope analysis support
bradzacher Nov 28, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions .prettierignore
Expand Up @@ -12,6 +12,9 @@ packages/eslint-plugin/src/configs/*.json
CONTRIBUTORS.md
packages/ast-spec/src/*/*/fixtures/_error_/*/fixture.ts

# prettier doesn't yet support auto-accessors
packages/ast-spec/src/element/AccessorProperty/fixtures

# Ignore CHANGELOG.md files to avoid issues with automated release job
CHANGELOG.md

Expand Down
2 changes: 2 additions & 0 deletions packages/ast-spec/src/ast-node-types.ts
@@ -1,4 +1,5 @@
export enum AST_NODE_TYPES {
AccessorProperty = 'AccessorProperty',
ArrayExpression = 'ArrayExpression',
ArrayPattern = 'ArrayPattern',
ArrowFunctionExpression = 'ArrowFunctionExpression',
Expand Down Expand Up @@ -90,6 +91,7 @@ export enum AST_NODE_TYPES {
/**
* TS-prefixed nodes
*/
TSAbstractAccessorProperty = 'TSAbstractAccessorProperty',
TSAbstractKeyword = 'TSAbstractKeyword',
TSAbstractMethodDefinition = 'TSAbstractMethodDefinition',
TSAbstractPropertyDefinition = 'TSAbstractPropertyDefinition',
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.