Skip to content

Commit fe2b3c2

Browse files
committed
Update jsdoctypeparser to 3.1.0 + test arrow types
1 parent 3a449f1 commit fe2b3c2

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
},
77
"dependencies": {
88
"comment-parser": "^0.5.1",
9-
"jsdoctypeparser": "^2.0.0-alpha-8",
9+
"jsdoctypeparser": "3.1.0",
1010
"lodash": "^4.17.11"
1111
},
1212
"description": "JSDoc linting rules for ESLint.",
@@ -58,7 +58,7 @@
5858
"build": "rm -fr ./dist && NODE_ENV=production babel ./src --out-dir ./dist --copy-files --source-maps",
5959
"create-readme": "gitdown ./.README/README.md --output-file ./README.md && npm run add-assertions",
6060
"lint": "eslint ./src ./test",
61-
"test": "mocha --recursive --require @babel/register"
61+
"test": "mocha --recursive --require @babel/register --reporter progress"
6262
},
6363
"version": "1.0.0"
6464
}

test/rules/assertions/checkTypes.js

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,24 @@ export default {
157157
function qux(foo) {
158158
}
159159
`
160-
}
160+
},
161+
{
162+
code: `
163+
/**
164+
* @param {(x: number, y: string) => string} foo
165+
*/
166+
function qux(foo) {
167+
}
168+
`
169+
},
170+
{
171+
code: `
172+
/**
173+
* @param {() => string} foo
174+
*/
175+
function qux(foo) {
176+
}
177+
`
178+
},
161179
]
162180
};

0 commit comments

Comments
 (0)