Skip to content

fix: regenerate package-lock and fix eslint errors#191

Merged
arbrandes merged 1 commit intoopenedx:mainfrom
arbrandes:fix-lint-errors
Mar 19, 2026
Merged

fix: regenerate package-lock and fix eslint errors#191
arbrandes merged 1 commit intoopenedx:mainfrom
arbrandes:fix-lint-errors

Conversation

@arbrandes
Copy link
Contributor

@arbrandes arbrandes commented Mar 17, 2026

Description

Regenerate package-lock.json and fix assorted eslint errors across runtime, shell, and tools.

Disable the prefer-optional-chain rule globally in the shared eslint config. Widen the no-require-imports override to match nested config files via **/ glob prefixes, and remove a redundant copy of that override from the root eslint.config.js.

Fix IDE type checking under tools/ by adding babel.config.js to the tsconfig include list.

LLM usage notice

Built with assistance from Claude models (mostly Opus 4.6).

@arbrandes arbrandes mentioned this pull request Mar 17, 2026
@arbrandes arbrandes linked an issue Mar 17, 2026 that may be closed by this pull request
@arbrandes arbrandes changed the title fix: resolve eslint errors across runtime, shell, and tools fix: regenerate package-lock and fix eslint errors Mar 17, 2026
Regenerate package-lock and fix resulting linting errors.  This includes
disabling the prefer-optional-chain rule in the base config.

Also fix IDE type checking under tools/ by adding babel.config.js to the
tsconfig include list.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
}],
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/prefer-nullish-coalescing': 'off',
'@typescript-eslint/prefer-optional-chain': 'off',
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are we disabling this on globally?

Copy link
Contributor Author

@arbrandes arbrandes Mar 19, 2026

Choose a reason for hiding this comment

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

This is just a style preference, but it's here primarily for backward compatibility. If we enable this we'll have to fix it across the board: and there are quite a few transgressions in the codebase, right now. (Unlike the nullish coalescing one, which sometimes we explicitly don't want.)

@arbrandes arbrandes merged commit 7be4b26 into openedx:main Mar 19, 2026
5 checks passed
@arbrandes arbrandes deleted the fix-lint-errors branch March 19, 2026 21:10
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.

Resolve eslint errors

2 participants