Rules
This section documents all rules currently provided by eslint-plugin-jupyter.
command-described-by
Ensure JupyterLab command registrations include a describedBy property.
incorrect-translator-usage
Require translation bundles returned by translator.load() to be stored under an extractor-recognized name (e.g. trans, this.trans, this._trans, props.trans, this.props.trans).
no-pageconfig-base-url
Disallow calling PageConfig.getBaseUrl() outside of makeSettings().
no-schema-enum
Disallow enum in settings JSON schema files; use oneOf with const and title instead.
no-translation-concatenation
Forbid string concatenation inside JupyterLab translation wrapper calls.
no-untranslated-string
Require user-facing string literals to be wrapped in a translation call such as trans.().
plugin-activation-args
Ensure JupyterLab plugin activate arguments match the order and count of requires and optional tokens.
plugin-description
Ensure all JupyterFrontEndPlugin objects define a non-empty description property.
require-soft-assertions-before-snapshots
Require expect.soft() for snapshot assertions that are not the last in a Playwright test block.
token-format
Ensure JupyterLab Token ids follow the : naming convention where the symbol is a valid JavaScript identifier.