You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: Start to use ResolvedGenerateOptions (#824)
* more-path-refactoring
* refactor: Consolidate options and context
The `ConfigFormat` enum is no longer needed, and its functionality has been integrated into the `ResolvedGenerateOptions`. The `Context` interface has been updated to include `ResolvedGenerateOptions`, and the `getContext` function now accepts these options.
This change simplifies option handling and ensures that all necessary configuration is available within the context object.
(This commit message was automatically generated by an LLM.)
* fix: Improve comment for unresolved options and remove redundant getContext calls
The comment in `lib/options.ts` explaining the `@ts-expect-error` was improved for clarity.
Several redundant `await getContext(cwd, options)` calls were removed from the `test/lib/markdown-test.ts` file, as the context is now obtained once before the tests. This simplifies the test setup and improves performance.
(This commit message was automatically generated by an LLM.)
* refactor: configEmoji so that it is clearer what is going on
* feat(tests): add option parsers tests
Adds tests for the `parseConfigEmojiOptions`, `parseRuleListColumnsOption`, and `parseRuleDocNoticesOption` functions. These tests cover the default behavior and handling of undefined inputs for each parser.
(This commit message was automatically generated by an LLM.)
* refactor: ignoreConfig into context
// Convert deprecated function-style rules to object-style rules so that we don't have to handle function-style rules everywhere throughout the codebase.
0 commit comments