Skip to content

chore: fix cspell violations in code blocks#12167

Merged
kirkwaiblinger merged 6 commits into
typescript-eslint:mainfrom
kirkwaiblinger:cspell-in-code-blocks
Apr 16, 2026
Merged

chore: fix cspell violations in code blocks#12167
kirkwaiblinger merged 6 commits into
typescript-eslint:mainfrom
kirkwaiblinger:cspell-in-code-blocks

Conversation

@kirkwaiblinger

Copy link
Copy Markdown
Member

PR Checklist

Overview

Tweak some typos, and otherwise add things to dictionary

@typescript-eslint

Copy link
Copy Markdown
Contributor

Thanks for the PR, @kirkwaiblinger!

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 on https://opencollective.com/typescript-eslint.

@netlify

netlify Bot commented Mar 25, 2026

Copy link
Copy Markdown

Deploy Preview for typescript-eslint ready!

Name Link
🔨 Latest commit 697980d
🔍 Latest deploy log https://app.netlify.com/projects/typescript-eslint/deploys/69e118f42c63dd00080c7082
😎 Deploy Preview https://deploy-preview-12167--typescript-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 97 (🔴 down 2 from production)
Accessibility: 97 (no change from production)
Best Practices: 100 (🟢 up 8 from production)
SEO: 90 (no change from production)
PWA: 80 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@nx-cloud

nx-cloud Bot commented Mar 25, 2026

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit 697980d

Command Status Duration Result
nx run-many -t lint ✅ Succeeded 2m 10s View ↗
nx test typescript-estree --coverage=false ✅ Succeeded 1s View ↗
nx run-many -t typecheck ✅ Succeeded 37s View ↗
nx run types:build ✅ Succeeded 1s View ↗
nx test eslint-plugin-internal --coverage=false ✅ Succeeded 3s View ↗
nx run integration-tests:test ✅ Succeeded 3s View ↗
nx run generate-configs ✅ Succeeded 4s View ↗
nx run-many --target=build --parallel --exclude... ✅ Succeeded 5s View ↗
Additional runs (34) ✅ Succeeded ... View ↗

☁️ Nx Cloud last updated this comment at 2026-04-16 17:21:27 UTC

@kirkwaiblinger kirkwaiblinger changed the title repo: fix cspell violations in code blocks chore: fix cspell violations in code blocks Mar 25, 2026
>
> See **https://typescript-eslint.io/rules/strict-void-return** for documentation.

{/* cspell:words Kazik,Zenek */}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should either start a custom dictionary or add these to the JSON file since they aren't context-dependent and can legitimately appear elsewhere

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having custom dictionary for names is good idea. It makes upkeep of those word lists easier and it’s kinda self-documenting.
Vscode also supports adding the words to the custom dictionaries, so it’s as easy than adding to the main file.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of using random names like this as well -- we should just use standard, english words / names so we don't need to add dictionary exceptions.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Personally I think name diversification is a good idea; we do that in MDN. English docs are not just for English culture.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also like the names used here... I double we'll really want to reuse these names in other places, hence why I scoped them to the file, but I am fine with it if we wanted to just add them to the main file 🤷

Comment thread packages/eslint-plugin/tests/rules/naming-convention/cases/createTestCases.ts Outdated
Calls to the `getDataKey` function can return a value that's not a `string`, despite the function's explicit return type annotation.
That can lead to unexpected behavior at runtime:

<!-- cspell:ignore bleu -->

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just change the example to use green instead?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Idk I think it makes more sense as is? "bleu" is intentionally a typo of "blue" in the context.

title: 'Avoiding `any`s with Linting and TypeScript'
---

{/* cspell:words Lazlo,Nadya,Nandor */}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use names already in the dict?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as #12167 (comment)... I like the idea of name diversification, and so I like the idea of just allow-listing a few names to be used in a specific file, rather than relying on globally allowing them.

@bradzacher

Copy link
Copy Markdown
Member

you can always tell when I wrote a doc cos I used the "correct" spelling 😝

@bradzacher bradzacher added the awaiting response Issues waiting for a reply from the OP or another party label Apr 8, 2026
@codecov

codecov Bot commented Apr 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.71%. Comparing base (1359c3e) to head (697980d).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #12167   +/-   ##
=======================================
  Coverage   86.71%   86.71%           
=======================================
  Files         513      513           
  Lines       16271    16271           
  Branches     5060     5060           
=======================================
  Hits        14109    14109           
  Misses       1474     1474           
  Partials      688      688           
Flag Coverage Δ
unittest 86.71% <ø> (ø)

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

🚀 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.

@github-actions github-actions Bot removed the awaiting response Issues waiting for a reply from the OP or another party label Apr 15, 2026
bradzacher
bradzacher previously approved these changes Apr 16, 2026
@bradzacher bradzacher added the 1 approval >=1 team member has approved this PR; we're now leaving it open for more reviews before we merge label Apr 16, 2026
Josh-Cena
Josh-Cena previously approved these changes Apr 16, 2026
title: 'Avoiding `any`s with Linting and TypeScript'
---

{/* cspell:words Lazlo,Nadya,Nandor */}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move these to dictionary

@kirkwaiblinger kirkwaiblinger dismissed stale reviews from Josh-Cena and bradzacher via 697980d April 16, 2026 17:14
@github-actions github-actions Bot removed the 1 approval >=1 team member has approved this PR; we're now leaving it open for more reviews before we merge label Apr 16, 2026
@kirkwaiblinger kirkwaiblinger merged commit 33c8169 into typescript-eslint:main Apr 16, 2026
62 checks passed
@kirkwaiblinger kirkwaiblinger deleted the cspell-in-code-blocks branch April 16, 2026 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Repo: Ensure cspell is enabled within code fences on documentation files

4 participants