Skip to content

Commit

Permalink
add excluded props name when warning about missing props docstring.
Browse files Browse the repository at this point in the history
  • Loading branch information
T4rk1n committed Dec 6, 2018
1 parent 93f82c6 commit bd7ea63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dash/extract-meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ function writeError(msg, filePath) {
}

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

0 comments on commit bd7ea63

Please sign in to comment.