Skip to content

[New] consistent-type-specifier-style: support named exports - #3297

Open
ColumbusLabs wants to merge 3 commits into
import-js:mainfrom
ColumbusLabs:resubmit-3277
Open

ColumbusLabs wants to merge 3 commits into
import-js:mainfrom
ColumbusLabs:resubmit-3277

Conversation

@ColumbusLabs

Copy link
Copy Markdown

Fixes #3044.

Resubmission of #3277, which became unrecoverable after its fork was deleted (sorry about that). The code is identical to #3277 (the rule, docs, README and tests match its head commit 038eb26 exactly); only the CHANGELOG link now points at this PR instead of the issue.

Extends consistent-type-specifier-style to TypeScript named exports (export { type A } vs export type { A }), applying the configured style the same way it does for imports, with autofix. Docs, README rule list and CHANGELOG updated.

Tests: tests/src/rules/consistent-type-specifier-style.js — 154 passing locally on ESLint 8.57.1 (the earlier PR description said 151; the test file is unchanged from 038eb26); eslint and markdownlint clean on the touched files.

@codecov

codecov Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 81.69014% with 13 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.62%. Comparing base (a60d715) to head (8a627a4).

Files with missing lines Patch % Lines
src/rules/consistent-type-specifier-style.js 81.69% 13 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3297      +/-   ##
==========================================
+ Coverage   79.59%   79.62%   +0.02%     
==========================================
  Files          98       98              
  Lines        4549     4619      +70     
  Branches     1543     1603      +60     
==========================================
+ Hits         3621     3678      +57     
- Misses        928      941      +13     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ColumbusLabs

Copy link
Copy Markdown
Author

Gentle ping when you get a chance. The branch is still mergeable; the only red check is the windows-2022 WSL setup step, which looks like a CI infra issue unrelated to this change. Happy to make any changes you'd like.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

import/consistent-type-specifier-style for exports

1 participant