Skip to content

Commit

Permalink
core(no-unload-listeners): move to best practices
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjclark committed Jan 11, 2023
1 parent 40e8195 commit 029b7ad
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 19 deletions.
2 changes: 1 addition & 1 deletion core/config/default-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,6 @@ const defaultConfig = {
{id: 'non-composited-animations', weight: 0},
{id: 'unsized-images', weight: 0},
{id: 'viewport', weight: 0},
{id: 'no-unload-listeners', weight: 0},
{id: 'uses-responsive-images-snapshot', weight: 0},
{id: 'work-during-interaction', weight: 0},
{id: 'bf-cache', weight: 0},
Expand Down Expand Up @@ -623,6 +622,7 @@ const defaultConfig = {
{id: 'doctype', weight: 1, group: 'best-practices-browser-compat'},
{id: 'charset', weight: 1, group: 'best-practices-browser-compat'},
// General Group
{id: 'no-unload-listeners', weight: 1, group: 'best-practices-general'},
{id: 'js-libraries', weight: 0, group: 'best-practices-general'},
{id: 'deprecations', weight: 1, group: 'best-practices-general'},
{id: 'errors-in-console', weight: 1, group: 'best-practices-general'},
Expand Down
29 changes: 16 additions & 13 deletions core/test/fixtures/fraggle-rock/reports/sample-flow-result.json
Original file line number Diff line number Diff line change
Expand Up @@ -3998,10 +3998,6 @@
"id": "viewport",
"weight": 0
},
{
"id": "no-unload-listeners",
"weight": 0
},
{
"id": "bf-cache",
"weight": 0
Expand Down Expand Up @@ -4396,6 +4392,11 @@
"weight": 1,
"group": "best-practices-browser-compat"
},
{
"id": "no-unload-listeners",
"weight": 1,
"group": "best-practices-general"
},
{
"id": "js-libraries",
"weight": 0,
Expand Down Expand Up @@ -9338,10 +9339,6 @@
"id": "unsized-images",
"weight": 0
},
{
"id": "no-unload-listeners",
"weight": 0
},
{
"id": "work-during-interaction",
"weight": 0
Expand Down Expand Up @@ -9417,6 +9414,11 @@
"weight": 0,
"group": "best-practices-ux"
},
{
"id": "no-unload-listeners",
"weight": 1,
"group": "best-practices-general"
},
{
"id": "deprecations",
"weight": 1,
Expand All @@ -9439,7 +9441,7 @@
}
],
"id": "best-practices",
"score": 0.83
"score": 0.86
}
},
"categoryGroups": {
Expand Down Expand Up @@ -18210,10 +18212,6 @@
"id": "viewport",
"weight": 0
},
{
"id": "no-unload-listeners",
"weight": 0
},
{
"id": "bf-cache",
"weight": 0
Expand Down Expand Up @@ -18608,6 +18606,11 @@
"weight": 1,
"group": "best-practices-browser-compat"
},
{
"id": "no-unload-listeners",
"weight": 1,
"group": "best-practices-general"
},
{
"id": "js-libraries",
"weight": 0,
Expand Down
11 changes: 6 additions & 5 deletions core/test/results/sample_v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -6291,10 +6291,6 @@
"id": "viewport",
"weight": 0
},
{
"id": "no-unload-listeners",
"weight": 0
},
{
"id": "bf-cache",
"weight": 0
Expand Down Expand Up @@ -6689,6 +6685,11 @@
"weight": 1,
"group": "best-practices-browser-compat"
},
{
"id": "no-unload-listeners",
"weight": 1,
"group": "best-practices-general"
},
{
"id": "js-libraries",
"weight": 0,
Expand Down Expand Up @@ -6716,7 +6717,7 @@
}
],
"id": "best-practices",
"score": 0.27
"score": 0.25
},
"seo": {
"title": "SEO",
Expand Down

0 comments on commit 029b7ad

Please sign in to comment.