Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
FentPams committed Jun 24, 2024
1 parent d284d3d commit 5739b00
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
3 changes: 2 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@
"@web/test-runner": "0.14.0",
"@web/test-runner-commands": "0.6.4",
"chai": "4.3.6",
"eslint": "8.22.0",
"eslint": "^8.22.0",
"eslint-config-airbnb-base": "15.0.0",
"eslint-plugin-import": "2.26.0",
"puppeteer": "^21.2.1",
"sinon": "14.0.0",
"stylelint": "14.10.0",
"stylelint-config-prettier": "9.0.3",
"stylelint-config-standard": "25.0.0",
"puppeteer": "^21.2.1"
"stylelint-config-standard": "25.0.0"
}
}
5 changes: 1 addition & 4 deletions scripts/scripts.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import {
sampleRUM,
buildBlock,
getAllMetadata,
getMetadata,
loadHeader,
loadFooter,
decorateButtons,
Expand Down Expand Up @@ -45,8 +43,7 @@ window.hlx.plugins.add('experimentation', {
condition: () => document.head.querySelector('[name^="experiment"],[name^="campaign-"],[name^="audience-"]')
|| document.head.querySelector('[property^="campaign:-"],[property^="audience:-"]')
|| document.querySelector('.section[class*="experiment-"],.section[class*="audience-"],.section[class*="campaign-"]')
|| [...document.querySelectorAll('.section-metadata div')].some((d) => d.textContent.match(/Experiment|Campaign|Audience/i))
,
|| [...document.querySelectorAll('.section-metadata div')].some((d) => d.textContent.match(/Experiment|Campaign|Audience/i)),
options: { audiences: AUDIENCES },
load: 'eager',
url: '/plugins/experimentation/src/index.js',
Expand Down

0 comments on commit 5739b00

Please sign in to comment.