Skip to content

Fix ISSUE: Close TS lint gap: either lint TypeScript or remove it #158#413

Open
ByGamer01 wants to merge 1 commit intocovibes:mainfrom
ByGamer01:fix/Close-TS-lint-gap--either-lint-TypeScript-or-remove-it-#158
Open

Fix ISSUE: Close TS lint gap: either lint TypeScript or remove it #158#413
ByGamer01 wants to merge 1 commit intocovibes:mainfrom
ByGamer01:fix/Close-TS-lint-gap--either-lint-TypeScript-or-remove-it-#158

Conversation

@ByGamer01
Copy link
Copy Markdown

Summary

Fix issue TS eslint

Related Issues

There are .ts tests in tests/, but ESLint is not configured to lint TypeScript (no @typescript-eslint/* parser/plugin, and eslint . doesn’t include .ts by default).

Result: TS files can contain “lint disables” that do nothing (e.g. tests/live-streaming-jsonschema.test.ts:2), and TS code gets no pattern enforcement.
Fixes #
Full TS linting:

  • Add @typescript-eslint/parser + @typescript-eslint/eslint-plugin.
  • Update eslint.config.mjs with a TS files block (files: ['tests/*.ts']) using the TS parser.

Changes Made

Update eslint.config.mjs with TS files block using @typescript-eslint/parser and @typescript-eslint/eslint-plugin ; but only for tests/*.ts .

Testing

How was this tested?
with 'npm run list'

Checklist

  • Tests pass (npm test)
  • Documentation updated (if needed)
  • Follows commit guidelines

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