-
-
Notifications
You must be signed in to change notification settings - Fork 118
fix: unknown word report config change #8261 #8273
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
base: main
Are you sure you want to change the base?
Conversation
|
Need any more help? |
Jason3S
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We just need to add some tests:
We will need a fixture:
issue-8261
It can be added to test/index.test.mts. See issue-4870 as an example.
Jason3S
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you.
| * | ||
| * default is 'all' unless overridden by CSpell settings | ||
| */ | ||
| report?: 'all' | 'simple' | 'typos' | 'flagged'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| report?: 'all' | 'simple' | 'typos' | 'flagged'; | |
| report?: 'all' | 'simple' | 'typos' | 'flagged' | undefined; |
This is to support having the default be undefined.
packages/cspell-eslint-plugin/src/plugin/defaultCheckOptions.cts
Outdated
Show resolved
Hide resolved
| import assert from 'node:assert'; | ||
|
|
||
| import { spellCheck, type SpellCheckOptions } from './spellCheck.mjs'; | ||
| import type { UnknownWordsChoices } from 'cspell-lib'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for adding the unit tests.
Co-authored-by: Jason Dent <[email protected]> Signed-off-by: Bence Márkus <[email protected]>
This
PRcontains the changes required to resolvecspell ESLint plugin: support typos-only reporting (CLI --report typos / unknownWords report-common-typos) #8261