Skip to content

Commit 3ba475e

Browse files
committedJul 29, 2024·
fix: move processor to own file; fixes #1277; fixes #1278
1 parent 6248d59 commit 3ba475e

File tree

4 files changed

+14
-5
lines changed

4 files changed

+14
-5
lines changed
 

‎.README/processors.md

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ The approach below works in ESLint 9. For ESLint 7, please see our [`check-examp
99
The approach requires that we first indicate the JavaScript files that will be checked for `@example` tags.
1010

1111
```js
12+
import getJsdocProcessorPlugin from 'eslint-plugin-jsdoc/getJsdocProcessorPlugin.js';
13+
1214
export default [
1315
{
1416
files: ['**/*.js'],

‎docs/processors.md

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ The approach below works in ESLint 9. For ESLint 7, please see our [`check-examp
1111
The approach requires that we first indicate the JavaScript files that will be checked for `@example` tags.
1212

1313
```js
14+
import getJsdocProcessorPlugin from 'eslint-plugin-jsdoc/getJsdocProcessorPlugin.js';
15+
1416
export default [
1517
{
1618
files: ['**/*.js'],

‎package.json

+10-3
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,16 @@
9191
"main": "./dist/index.cjs",
9292
"types": "./dist/index.d.ts",
9393
"exports": {
94-
"types": "./dist/index.d.ts",
95-
"import": "./src/index.js",
96-
"require": "./dist/index.cjs"
94+
".": {
95+
"types": "./dist/index.d.ts",
96+
"import": "./src/index.js",
97+
"require": "./dist/index.cjs"
98+
},
99+
"./getJsdocProcessorPlugin.js": {
100+
"types": "./dist/getJsdocProcessorPlugin.d.ts",
101+
"import": "./dist/getJsdocProcessorPlugin.cjs",
102+
"require": "./src/getJsdocProcessorPlugin.js"
103+
}
97104
},
98105
"name": "eslint-plugin-jsdoc",
99106
"mocha": {

‎src/index.js

-2
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,4 @@ index.configs['examples-and-default-expressions'] = /** @type {import('eslint').
380380
})
381381
]);
382382

383-
export { getJsdocProcessorPlugin };
384-
385383
export default index;

0 commit comments

Comments
 (0)
Please sign in to comment.