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(linter): support report @typescript-eslint/consistent-type-imports #3895

Conversation

mysteryven
Copy link
Member

@mysteryven mysteryven commented Jun 25, 2024

This PR only contains the part about report error, adding the fixer part will make the whole PR difficult to review at one time.

There are also some commented cases. One kind of them is decorator, as it blocked by #3645, another kind of them is type reference, need to solve #3799 first. I added TODO flags for them.

Copy link

graphite-app bot commented Jun 25, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “merge” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

@github-actions github-actions bot added A-linter Area - Linter A-ast Area - AST labels Jun 25, 2024
Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @mysteryven and the rest of your teammates on Graphite Graphite

@mysteryven mysteryven changed the title feat(linter): add @typescript-eslint/consistent-type-imports rule feat(linter): support report @typescript-eslint/consistent-type-imports Jun 25, 2024
Copy link

codspeed-hq bot commented Jun 25, 2024

CodSpeed Performance Report

Merging #3895 will not alter performance

Comparing 06-16-feat_linter_add_typescript-eslint/consistent-type-imports_rule (b257d53) with main (3870ed5)

Summary

✅ 28 untouched benchmarks

@mysteryven mysteryven marked this pull request as ready for review June 25, 2024 06:31
@Boshen Boshen force-pushed the 06-16-feat_linter_add_typescript-eslint/consistent-type-imports_rule branch from df5f905 to 2e7389d Compare June 30, 2024 10:28
@Boshen Boshen added the merge label Jun 30, 2024
Copy link

graphite-app bot commented Jun 30, 2024

Merge activity

  • Jun 30, 6:29 AM EDT: The merge label 'merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Jun 30, 9:53 AM EDT: Boshen merged this pull request with the Graphite merge queue.

…rts` (#3895)

This PR only contains the part about report error, adding the fixer part will make the whole PR difficult to review at one time.

There are also some commented cases. One kind of them is `decorator`, as it blocked by #3645, another kind of them is type reference, need to solve #3799 first. I added TODO flags for them.
@Boshen Boshen force-pushed the 06-16-feat_linter_add_typescript-eslint/consistent-type-imports_rule branch from 48c800f to b257d53 Compare June 30, 2024 13:48
@graphite-app graphite-app bot merged commit b257d53 into main Jun 30, 2024
25 checks passed
@graphite-app graphite-app bot deleted the 06-16-feat_linter_add_typescript-eslint/consistent-type-imports_rule branch June 30, 2024 13:53
This was referenced Jul 1, 2024
Boshen added a commit that referenced this pull request Jul 2, 2024
## [0.16.3] - 2024-07-02

### Features

- b257d53 linter: Support report
`@typescript-eslint/consistent-type-imports` (#3895) (mysteryven)

### Bug Fixes

- 23038ad codegen: Print `TSFunctionType` inside `TSTypeAssertion`
(#3999) (Boshen)
- d995f94 semantic: Resolve reference incorrectly when a parameter
references a parameter that hasn't been defined yet (#4004) (Dunqing)
- bdee156 transformer/typescript: `declare class` incorrectly preserved
as runtime class (#3997) (Dunqing)
- a50ce3d transformer/typescript: Missing initializer for class
constructor arguments with `private` and `protected` modifier (#3996)
(Dunqing)

### Refactor

- 0fe22a8 ast: Reorder fields to reflect their visit order. (#3994)
(rzvxa)
- d0eac46 parser: Use function instead of trait to parse normal lists
(#4003) (Boshen)

Co-authored-by: Boshen <[email protected]>
@github-actions github-actions bot mentioned this pull request Jul 2, 2024
Boshen added a commit that referenced this pull request Jul 2, 2024
## [0.6.0] - 2024-07-02

- c98d8aa ast: [**BREAKING**] Rename `visit_arrow_expression` to
`visit_arrow_function_expression`. (#3995) (rzvxa)

### Features

- dc6d45e ast,codegen: Add `TSParenthesizedType` and print type
parentheses correctly (#3979) (Boshen)
- b257d53 linter: Support report
`@typescript-eslint/consistent-type-imports` (#3895) (mysteryven)
- 2114475 linter: Implement @typescript-eslint/no-dynamic-delete (#3971)
(kaykdm)
- 10a3c9a linter/eslint-plugin-react: Implement no-set-state (#3975)
(Jelle van der Waa)

### Bug Fixes

- 432d6d9 linter: Find disabled directives using the message's `Span`.
(#4010) (rzvxa)
- dbbb6fc linter: Global variable check should always check builtin
variables (#3973) (Boshen)

### Performance

- 1eac3d2 semantic: Use `Atom<'a>` for `Reference`s (#3972) (Don Isaac)

### Refactor

Co-authored-by: Boshen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ast Area - AST A-linter Area - Linter merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants