From f0f5e1848e4a0d920d743433de12f91ded46d4e1 Mon Sep 17 00:00:00 2001 From: Brett Zamir Date: Mon, 29 Jul 2024 16:19:31 +0800 Subject: [PATCH] docs: fix docs for `getJsdocProcessorPlugin` --- .README/processors.md | 4 ++-- docs/processors.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.README/processors.md b/.README/processors.md index e5daf220..8de1c88a 100644 --- a/.README/processors.md +++ b/.README/processors.md @@ -9,7 +9,7 @@ The approach below works in ESLint 9. For ESLint 7, please see our [`check-examp The approach requires that we first indicate the JavaScript files that will be checked for `@example` tags. ```js -import getJsdocProcessorPlugin from 'eslint-plugin-jsdoc/getJsdocProcessorPlugin.js'; +import {getJsdocProcessorPlugin} from 'eslint-plugin-jsdoc/getJsdocProcessorPlugin.js'; export default [ { @@ -28,7 +28,7 @@ export default [ }, processor: 'examples/examples' }, -], +]; ``` Now you can target the JavaScript inside these `@example` or default blocks diff --git a/docs/processors.md b/docs/processors.md index a588a81d..3998e043 100644 --- a/docs/processors.md +++ b/docs/processors.md @@ -11,7 +11,7 @@ The approach below works in ESLint 9. For ESLint 7, please see our [`check-examp The approach requires that we first indicate the JavaScript files that will be checked for `@example` tags. ```js -import getJsdocProcessorPlugin from 'eslint-plugin-jsdoc/getJsdocProcessorPlugin.js'; +import {getJsdocProcessorPlugin} from 'eslint-plugin-jsdoc/getJsdocProcessorPlugin.js'; export default [ { @@ -30,7 +30,7 @@ export default [ }, processor: 'examples/examples' }, -], +]; ``` Now you can target the JavaScript inside these `@example` or default blocks