Skip to content

Commit

Permalink
feat: text_ratio validate (<10% warning)
Browse files Browse the repository at this point in the history
  • Loading branch information
popstas committed Apr 27, 2020
1 parent cc15ea8 commit db47575
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ const colsValidate = {
warning: (v) => v > 1500,
error: (v) => v > 3000,
},
text_ratio: {
warning: (v) => v < 10,
},
html_size: {
warning: (v) => v > 1000000,
},
Expand Down

0 comments on commit db47575

Please sign in to comment.