From 03b5763e1ca23695cf6222b88c71c904691a633e Mon Sep 17 00:00:00 2001 From: Maximilian Franzke <787658+mfranzke@users.noreply.github.com> Date: Sat, 4 Dec 2021 09:13:47 +0100 Subject: [PATCH] refactor: prettier code formatting --- .../files/_handlebars-test-patterns/atoms/global/_hidden.hbs | 2 +- .../atoms/global/helloworld-withdata.hbs | 2 +- .../_handlebars-test-patterns/atoms/global/helloworld.hbs | 2 +- packages/engine-twig/lib/engine_twig.js | 3 ++- packages/uikit-workshop/src/html/partials/base-template.html | 5 +---- packages/uikit-workshop/webpack.config.js | 2 +- 6 files changed, 7 insertions(+), 9 deletions(-) diff --git a/packages/core/test/files/_handlebars-test-patterns/atoms/global/_hidden.hbs b/packages/core/test/files/_handlebars-test-patterns/atoms/global/_hidden.hbs index b2c93a13e..0908c6843 100644 --- a/packages/core/test/files/_handlebars-test-patterns/atoms/global/_hidden.hbs +++ b/packages/core/test/files/_handlebars-test-patterns/atoms/global/_hidden.hbs @@ -1 +1 @@ -I'm the hidden atom +I'm the hidden atom \ No newline at end of file diff --git a/packages/core/test/files/_handlebars-test-patterns/atoms/global/helloworld-withdata.hbs b/packages/core/test/files/_handlebars-test-patterns/atoms/global/helloworld-withdata.hbs index 30c6ff45a..81bc7229a 100644 --- a/packages/core/test/files/_handlebars-test-patterns/atoms/global/helloworld-withdata.hbs +++ b/packages/core/test/files/_handlebars-test-patterns/atoms/global/helloworld-withdata.hbs @@ -1,2 +1,2 @@ Hello world! -{{subtitle}} +{{subtitle}} \ No newline at end of file diff --git a/packages/core/test/files/_handlebars-test-patterns/atoms/global/helloworld.hbs b/packages/core/test/files/_handlebars-test-patterns/atoms/global/helloworld.hbs index cd0875583..6769dd60b 100644 --- a/packages/core/test/files/_handlebars-test-patterns/atoms/global/helloworld.hbs +++ b/packages/core/test/files/_handlebars-test-patterns/atoms/global/helloworld.hbs @@ -1 +1 @@ -Hello world! +Hello world! \ No newline at end of file diff --git a/packages/engine-twig/lib/engine_twig.js b/packages/engine-twig/lib/engine_twig.js index 76308ecef..89dac691b 100644 --- a/packages/engine-twig/lib/engine_twig.js +++ b/packages/engine-twig/lib/engine_twig.js @@ -124,7 +124,8 @@ var engine_twig = { engineFileExtension: '.twig', // regexes, stored here so they're only compiled once - findPartialsRE: /{%[-]?\s*(?:extends|include|embed|from|import|use)\s+('[^']+'|"[^"]+").*?%}/g, + findPartialsRE: + /{%[-]?\s*(?:extends|include|embed|from|import|use)\s+('[^']+'|"[^"]+").*?%}/g, findPartialKeyRE: /"((?:\\.|[^"\\])*)"/, findListItemsRE: /({{#( )?)(list(I|i)tems.)(one|two|three|four|five|six|seven|eight|nine|ten|eleven|twelve|thirteen|fourteen|fifteen|sixteen|seventeen|eighteen|nineteen|twenty)( )?}}/g, // TODO diff --git a/packages/uikit-workshop/src/html/partials/base-template.html b/packages/uikit-workshop/src/html/partials/base-template.html index 5f47c91a7..799af572b 100755 --- a/packages/uikit-workshop/src/html/partials/base-template.html +++ b/packages/uikit-workshop/src/html/partials/base-template.html @@ -2,10 +2,7 @@ {{# descBlockExists }}
{{# isPatternView }} diff --git a/packages/uikit-workshop/webpack.config.js b/packages/uikit-workshop/webpack.config.js index 1911b0953..9d0a1338a 100644 --- a/packages/uikit-workshop/webpack.config.js +++ b/packages/uikit-workshop/webpack.config.js @@ -120,7 +120,7 @@ module.exports = function (apiConfig) { options: { sassOptions: { sourceMap: config.sourceMaps, - outputStyle: 'expanded' + outputStyle: 'expanded', }, }, },