Skip to content

Commit

Permalink
fix: surface jsdoc-type-pratt-parser fix, use pratt parser reexports …
Browse files Browse the repository at this point in the history
…from jsdoccomment, and allow patch version updates of jsdoccomment (which allows them now for the pratt parser)
  • Loading branch information
brettz9 committed Jan 9, 2022
1 parent a009350 commit f48766e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@
"url": "http://gajus.com"
},
"dependencies": {
"@es-joy/jsdoccomment": "0.16.0",
"@es-joy/jsdoccomment": "~0.17.0",
"comment-parser": "1.3.0",
"debug": "^4.3.3",
"escape-string-regexp": "^4.0.0",
"esquery": "^1.4.0",
"jsdoc-type-pratt-parser": "^2.2.0",
"regextras": "^0.8.0",
"semver": "^7.3.5",
"spdx-expression-parse": "^3.0.1"
Expand Down
2 changes: 1 addition & 1 deletion src/rules/checkTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
stringify,
traverse,
tryParse,
} from 'jsdoc-type-pratt-parser';
} from '@es-joy/jsdoccomment';
import iterateJsdoc from '../iterateJsdoc';

const strictNativeTypes = [
Expand Down
5 changes: 2 additions & 3 deletions src/rules/noUndefinedTypes.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import {
getJSDocComment,
} from '@es-joy/jsdoccomment';
import {

traverse,
parse as parseType,
tryParse as tryParseType,
} from 'jsdoc-type-pratt-parser';
} from '@es-joy/jsdoccomment';
import iterateJsdoc, {
parseComment,
} from '../iterateJsdoc';
Expand Down
2 changes: 1 addition & 1 deletion src/rules/validTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
tryParse,
parse,
traverse,
} from 'jsdoc-type-pratt-parser';
} from '@es-joy/jsdoccomment';
import iterateJsdoc from '../iterateJsdoc';

const asExpression = /as\s+/u;
Expand Down

0 comments on commit f48766e

Please sign in to comment.