Skip to content

Commit

Permalink
fix: lighthouse group main
Browse files Browse the repository at this point in the history
  • Loading branch information
popstas committed Aug 21, 2020
1 parent d93cf1a commit 6e7f26b
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions src/presets/fields.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const fieldsLighthouse = require('./fields-lighthouse');
const fields = [
{
name: 'url',
comment: 'URL, который ответил (после редиректа)',
comment: 'URL',
groups: ['info'],
},
{
Expand Down Expand Up @@ -197,7 +197,8 @@ const fields = [
name: 'html_size',
comment: 'Размер HTML, байт',
validate: {
warning: '> 1000000'
warning: '> 500000',
error: '> 1000000'
},
groups: ['perf'],
type: 'integer',
Expand All @@ -206,31 +207,31 @@ const fields = [
{
name: 'lighthouse_scores_performance',
comment: 'Lighthouse: Производительность',
groups: ['lighthouse'],
groups: ['Lighthouse: Главное'],
type: 'integer',
},
{
name: 'lighthouse_scores_pwa',
comment: 'Lighthouse: PWA',
groups: ['lighthouse'],
groups: ['Lighthouse: Главное'],
type: 'integer',
},
{
name: 'lighthouse_scores_accessibility',
comment: 'Lighthouse: Доступность',
groups: ['lighthouse'],
groups: ['Lighthouse: Главное'],
type: 'integer',
},
{
name: 'lighthouse_scores_best-practices',
comment: 'Lighthouse: Best-practices',
groups: ['lighthouse'],
groups: ['Lighthouse: Главное'],
type: 'integer',
},
{
name: 'lighthouse_scores_seo',
comment: 'Lighthouse: SEO',
groups: ['lighthouse'],
groups: ['Lighthouse: Главное'],
type: 'integer',
},

Expand All @@ -241,7 +242,7 @@ const fields = [
warning: '> 2000',
error: '> 4000',
},
groups: ['lighthouse'],
groups: ['Lighthouse: Главное'],
type: 'integer',
},
{
Expand All @@ -251,7 +252,7 @@ const fields = [
warning: '> 4300',
error: '> 5800',
},
groups: ['lighthouse'],
groups: ['Lighthouse: Главное'],
type: 'integer',
},
{
Expand All @@ -261,7 +262,7 @@ const fields = [
warning: '> 2000',
error: '> 4000',
},
groups: ['lighthouse'],
groups: ['Lighthouse: Главное'],
type: 'integer',
},
{
Expand All @@ -271,7 +272,7 @@ const fields = [
warning: '> 3800',
error: '> 7300',
},
groups: ['lighthouse'],
groups: ['Lighthouse: Главное'],
type: 'integer',
},
{
Expand All @@ -281,7 +282,7 @@ const fields = [
warning: '> 300',
error: '> 600',
},
groups: ['lighthouse'],
groups: ['Lighthouse: Главное'],
type: 'integer',
},
{
Expand All @@ -291,7 +292,7 @@ const fields = [
warning: '> 100',
error: '> 250',
},
groups: ['lighthouse'],
groups: ['Lighthouse: Главное'],
type: 'integer',
},
];
Expand Down

0 comments on commit 6e7f26b

Please sign in to comment.