Skip to content

Commit b081151

Browse files
committed
add excluded props name when warning about missing props docstring.
1 parent b0ea2f4 commit b081151

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dash/extract-meta.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ function writeError(msg, filePath) {
3636
}
3737

3838
function checkWarn(name, value) {
39-
if (value.length < 1) {
39+
const excluded = ['setProps', 'id', 'className', 'style', 'dashEvents', 'fireEvent'];
40+
if (value.length < 1 && !excluded.includes(name)) {
4041
process.stderr.write(`\nDescription for ${name} is missing!\n`)
4142
}
4243
}

0 commit comments

Comments
 (0)