Skip to content

fix: align release note and ESLint config types#925

Open
Chinay-Domitrix wants to merge 3 commits into
zen-browser:mainfrom
Chinay-Domitrix:typing-fixes
Open

fix: align release note and ESLint config types#925
Chinay-Domitrix wants to merge 3 commits into
zen-browser:mainfrom
Chinay-Domitrix:typing-fixes

Conversation

@Chinay-Domitrix
Copy link
Copy Markdown

Fixes a few TypeScript typing issues that show up in the current config/data setup.

The release note JSON data can include security as either a single entry or an array of entries, so the ReleaseNote type now reflects that instead of only allowing strings.

The ESLint config updates are small type-only cleanups:

  • cast eslint-plugin-jsx-a11y through ESLint.Plugin where it is registered
  • remove the stale @ts-expect-error from the eslint-plugin-import import now that the package provides types

Changed files:

  • src/release-notes.ts
  • .eslint/astro.ts
  • .eslint/jsx-a11y.ts
  • .eslint/import.ts

Update the ReleaseNote type so security entries can be represented as either a
single string or an array, matching the imported release note JSON data.
Cast eslint-plugin-jsx-a11y through ESLint.Plugin where it is registered in the
Astro and JSX a11y ESLint configs.
Remove the unused @ts-expect-error now that eslint-plugin-import provides types.
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.

1 participant