Skip to content

Commit

Permalink
chore: use external @es-joy/jsdoccomment for getJSDocComment func…
Browse files Browse the repository at this point in the history
…tionality

BREAKING CHANGE:

Should only be breaking for anyone requiring the `getJSDocComment` file.

Also updates Babel devDeps.
  • Loading branch information
brettz9 committed Apr 30, 2021
1 parent aece5e6 commit aa77e3b
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 325 deletions.
5 changes: 3 additions & 2 deletions package.json
Expand Up @@ -5,6 +5,7 @@
"url": "http://gajus.com"
},
"dependencies": {
"@es-joy/jsdoccomment": "^0.1.1",
"comment-parser": "1.1.5",
"debug": "^4.3.1",
"jsdoctypeparser": "^9.0.0",
Expand All @@ -16,12 +17,12 @@
"description": "JSDoc linting rules for ESLint.",
"devDependencies": {
"@babel/cli": "^7.13.16",
"@babel/core": "^7.13.16",
"@babel/core": "^7.14.0",
"@babel/eslint-parser": "^7.13.14",
"@babel/node": "^7.13.13",
"@babel/plugin-syntax-class-properties": "^7.12.13",
"@babel/plugin-transform-flow-strip-types": "^7.13.0",
"@babel/preset-env": "^7.13.15",
"@babel/preset-env": "^7.14.0",
"@babel/register": "^7.13.16",
"@hkdobrev/run-if-changed": "^0.3.1",
"@typescript-eslint/parser": "^4.22.0",
Expand Down
19 changes: 0 additions & 19 deletions src/eslint/LICENSE-MIT.txt

This file was deleted.

235 changes: 0 additions & 235 deletions src/eslint/getJSDocComment.js

This file was deleted.

4 changes: 2 additions & 2 deletions src/exportParser.js
@@ -1,7 +1,7 @@
import debugModule from 'debug';
import {
findJSDocComment,
} from './eslint/getJSDocComment';
} from '@es-joy/jsdoccomment';
import debugModule from 'debug';

const debug = debugModule('requireExportJsdoc');

Expand Down
6 changes: 3 additions & 3 deletions src/iterateJsdoc.js
@@ -1,3 +1,6 @@
import {
getReducedASTNode, getJSDocComment,
} from '@es-joy/jsdoccomment';
import {
parse as commentParser, stringify as commentStringify,
} from 'comment-parser';
Expand All @@ -15,9 +18,6 @@ import {
seedTokens,
} from 'comment-parser/lib/util';
import _ from 'lodash';
import {
getJSDocComment, getReducedASTNode,
} from './eslint/getJSDocComment';
import jsdocUtils from './jsdocUtils';

/*
Expand Down
6 changes: 3 additions & 3 deletions src/rules/noUndefinedTypes.js
@@ -1,10 +1,10 @@
import {
getJSDocComment,
} from '@es-joy/jsdoccomment';
import {
parse as parseType, traverse,
} from 'jsdoctypeparser';
import _ from 'lodash';
import {
getJSDocComment,
} from '../eslint/getJSDocComment';
import iterateJsdoc, {
parseComment,
} from '../iterateJsdoc';
Expand Down
4 changes: 2 additions & 2 deletions src/rules/requireJsdoc.js
@@ -1,7 +1,7 @@
import _ from 'lodash';
import {
getJSDocComment, getReducedASTNode, getDecorator,
} from '../eslint/getJSDocComment';
} from '@es-joy/jsdoccomment';
import _ from 'lodash';
import exportParser from '../exportParser';
import {
getSettings,
Expand Down
59 changes: 0 additions & 59 deletions test/eslint/getJSDocComment.js

This file was deleted.

0 comments on commit aa77e3b

Please sign in to comment.