Rules
This section documents all rules currently provided by eslint-plugin-jupyter.
Available rules
- command-described-by
- command-id-convention
- galata-prefer-context-menu-helper
- galata-prefer-filebrowser-helper
- galata-prefer-menu-helper
- galata-prefer-notebook-cell-helper
- galata-prefer-sidebar-activity-helper
- incorrect-translator-usage
- no-dynamic-translation
- no-schema-enum
- no-translation-concatenation
- no-pageconfig-base-url
- no-untranslated-string
- plugin-activation-args
- plugin-description
- plugin-id-convention
- prefer-lazy-imports
- prefer-signal-this-arg
- require-disposable-ownership
- require-disposable-transfer
- require-signal-cleanup
- require-signal-this-arg
- require-soft-assertions-before-snapshots
- token-format
Each page includes intent, examples, configuration, and when to apply the rule.
Recommended ruleset
The plugin ships with a recommended configuration that enables all current rules with the following defaults:
¹ Turned off for **/*.spec.{ts,js} and **/*.test.{ts,js} files, where mock plugins and commands would otherwise be reported.
² Applied only to **/*.spec.{ts,js} and **/*.test.{ts,js} files.
³ Applied only to **/schema/*.json files.
These defaults are the same in both jupyterPlugin.configs.recommended (flat config) and plugin:@jupyter/eslint-plugin/recommended-legacy.
For guidance on using these recommended rules, see the User Guide.