Skip to content

Commit 35c5726

Browse files
committed
fix: change const back to var since PL's Uikit JS isn't run through Babel just yet.. update Prettier config to ignore Uikit's JavaScript for the time being
1 parent 9c16675 commit 35c5726

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@
88
packages/core/scripts/api.handlebars
99
packages/core/scripts/events.handlebars
1010
packages/core/test/files/annotations.js
11+
**/uikit-workshop/src/js/**/*

packages/uikit-workshop/src/js/modal-styleguide.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ var modalStyleguide = {
121121
* getting thrown when certain script tags aren't rendered with partial.patternData content.
122122
*/
123123
if (/\S/.test(el.innerHTML)) {
124-
const patternData = JSON.parse(el.innerHTML);
124+
var patternData = JSON.parse(el.innerHTML);
125125
if (patternData.patternName !== undefined) {
126126
patternMarkupEl = document.querySelector(
127127
'#' + patternData.patternPartial + ' > .pl-js-pattern-example'

0 commit comments

Comments
 (0)