Skip to main content

Rules

This section documents all rules currently provided by eslint-plugin-jupyter.

Available rules

Each page includes intent, examples, configuration, and when to apply the rule.

The plugin ships with a recommended configuration that enables all current rules with the following defaults:

RuleLevel
jupyter/plugin-activation-argserror
jupyter/command-described-bywarn
jupyter/no-untranslated-stringwarn
jupyter/plugin-descriptionwarn
jupyter/no-translation-concatenationerror
jupyter/token-formaterror
jupyter/require-soft-assertions-before-snapshotswarn ¹
jupyter/no-schema-enumwarn ²
jupyter/no-pageconfig-base-urlwarn

¹ 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.