Skip to content

Commit

Permalink
fix: lighthouse_largest-contentful-paint validate
Browse files Browse the repository at this point in the history
  • Loading branch information
popstas committed Apr 15, 2021
1 parent ab68051 commit 2b752c9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/presets/fields-lighthouse.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ const fields = [
"# Lighthouse: Производительность",
"Производительность: Показатели"
],
"type": "integer"
"type": "integer",
stat: {
type: 'ranges',
ranges: ['< 2500', '2500-4000', '> 4000']
}
},
{
"name": "lighthouse_interactive",
Expand Down
2 changes: 1 addition & 1 deletion src/validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const colsValidate = {
// https://web.dev/lighthouse-performance/
'first-contentful-paint': warnErrorThresholds(2000, 4000),
'speed-index': warnErrorThresholds(4300, 5800),
'largest-contentful-paint': warnErrorThresholds(2000, 4000),
'largest-contentful-paint': warnErrorThresholds(2500, 4000),
'interactive': warnErrorThresholds(3800, 7300),
'total-blocking-time': warnErrorThresholds(300, 600),
'cumulative-layout-shift': warnErrorThresholds(100, 250),
Expand Down

0 comments on commit 2b752c9

Please sign in to comment.