@jupyter/eslint-plugin
v0.0.1
Published
ESLint plugin for Jupyter core and extensions with early error catching and best practices enforcement
Readme
eslint-plugin
ESLint plugin for Jupyter core and extensions with early error catching and best practices enforcement.
Installation
npm install --save-dev @jupyter/eslint-pluginRules
command-described-by- Ensure JupyterLab commands include describedBy propertyplugin-activation-args- Ensure JupyterLab plugin activation function arguments match requires and optional tokens in orderplugin-description- Ensure JupyterLab plugins have a description property
Usage
Add jupyter to the plugins section of your ESLint configuration:
// eslint.config.js
import jupyterPlugin from '@jupyter/eslint-plugin';
export default [
{
files: ['**/*.ts', '**/*.tsx'],
plugins: {
jupyter: jupyterPlugin
},
rules: {
'jupyter/command-described-by': 'warn',
'jupyter/plugin-activation-args': 'warn',
'jupyter/plugin-description': 'warn'
}
}
];License
BSD 3-Clause
