Install prettier and make it compatible with stylelint

This commit is contained in:
Christian Wolf 2022-04-10 16:15:53 +02:00
parent 3f60629d3b
commit d8be862cb5
27 changed files with 269 additions and 76 deletions

View File

@ -1,2 +1,2 @@
@forward "responsive"; @forward 'responsive';
@forward "colors"; @forward 'colors';

View File

@ -1,4 +1,4 @@
@use "../abstract" as abstract; @use '../abstract' as abstract;
.article-info { .article-info {
font-size: smaller; font-size: smaller;
@ -20,7 +20,7 @@
border: none; border: none;
text-shadow: unset; text-shadow: unset;
> span[class^="icon-"] { > span[class^='icon-'] {
display: none; display: none;
} }
} }

View File

@ -1,8 +1,8 @@
@use "slideshow"; @use 'slideshow';
@use "article"; @use 'article';
@use "current-page-menu"; @use 'current-page-menu';
@use "result-table"; @use 'result-table';
@use "presseberichte"; @use 'presseberichte';
@use "verbandstag"; @use 'verbandstag';
@use "vereine"; @use 'vereine';
@use "contact-list"; @use 'contact-list';

View File

@ -1,4 +1,4 @@
@use "../abstract" as abstract; @use '../abstract' as abstract;
table.pressespiegel { table.pressespiegel {
@include abstract.for-narrow-screen { @include abstract.for-narrow-screen {
@ -9,7 +9,7 @@ table.pressespiegel {
> td { > td {
&:last-child::before { &:last-child::before {
content: "Rubrik: "; content: 'Rubrik: ';
} }
} }
} }

View File

@ -1,4 +1,4 @@
@use "../abstract" as abstract; @use '../abstract' as abstract;
table.result { table.result {
max-width: 800px; max-width: 800px;

View File

@ -1,4 +1,4 @@
@use "../abstract" as abstract; @use '../abstract' as abstract;
#slideshow { #slideshow {
flex: 1; flex: 1;

View File

@ -1,4 +1,4 @@
@use "../abstract" as abstract; @use '../abstract' as abstract;
table.verbandstag { table.verbandstag {
@include abstract.for-narrow-screen { @include abstract.for-narrow-screen {

View File

@ -1,4 +1,4 @@
@use "../abstract" as abstract; @use '../abstract' as abstract;
.slt-vereine { .slt-vereine {
@include abstract.for-narrow-screen { @include abstract.for-narrow-screen {
@ -28,7 +28,7 @@
} }
> td:nth-child(4)::before { > td:nth-child(4)::before {
content: "Ansprechpartner: "; content: 'Ansprechpartner: ';
} }
} }

View File

@ -1,4 +1,4 @@
@use "../abstract" as abstract; @use '../abstract' as abstract;
body { body {
margin: 0; margin: 0;

View File

@ -1,2 +1,2 @@
@use "core"; @use 'core';
@use "default-classes"; @use 'default-classes';

View File

@ -2,8 +2,8 @@
define('_JEXEC', 1); define('_JEXEC', 1);
define('JPATH_BASE', '../../../'); define('JPATH_BASE', '../../../');
require_once ( JPATH_BASE .'/includes/defines.php' ); require_once JPATH_BASE . '/includes/defines.php';
require_once ( JPATH_BASE .'/includes/framework.php' ); require_once JPATH_BASE . '/includes/framework.php';
$container = \Joomla\CMS\Factory::getContainer(); $container = \Joomla\CMS\Factory::getContainer();
$container->alias(\Joomla\Session\SessionInterface::class, 'session.web.site'); $container->alias(\Joomla\Session\SessionInterface::class, 'session.web.site');
@ -11,7 +11,7 @@ $mainframe = $container->get(\Joomla\CMS\Application\SiteApplication::class);
$template = $mainframe->getTemplate(true); $template = $mainframe->getTemplate(true);
$params = $template->params; $params = $template->params;
header("content-type: text/css"); header('content-type: text/css');
// duration of cached content (1 hour) // duration of cached content (1 hour)
$offset = 60 * 60; $offset = 60 * 60;
@ -23,22 +23,20 @@ header("Cache-Control: must-revalidate, max-age=$offset, public");
// send cache expiration header to broswer // send cache expiration header to broswer
// header($ExpStr); // header($ExpStr);
$leftImageValue = (empty($params['imgleft']) ? "none" : "url(\"" . JPATH_BASE. "/" . $params['imgleft'] . "\")") ; $leftImageValue = empty($params['imgleft'])
$rightImageValue = (empty($params['imgright']) ? "none" : "url(\"" . JPATH_BASE . "/" . $params['imgright'] . "\")") ? 'none'
: "url(\"" . JPATH_BASE . '/' . $params['imgleft'] . "\")";
$rightImageValue = empty($params['imgright'])
? 'none'
: "url(\"" . JPATH_BASE . '/' . $params['imgright'] . "\")";
?> ?>
<?php <?php if ($params['titlepage'] === '1') { ?>
if($params['titlepage'] === '1')
{
?>
#left-menu #left-menu
{ {
display: none; display: none;
} }
<?php <?php } ?>
}
?>
body body
{ {
@ -52,7 +50,11 @@ a, a:hover, a:active, a:visited
#page-bg #page-bg
{ {
background-image: linear-gradient(to bottom, <?php echo $params['mainbgcolortop'] . ',' . $params['mainbgcolorbot']; ?>); background-image: linear-gradient(to bottom, <?php echo $params[
'mainbgcolortop'
] .
',' .
$params['mainbgcolorbot']; ?>);
color: <?php echo $params['mainfgcolor']; ?>; color: <?php echo $params['mainfgcolor']; ?>;
} }

View File

@ -1,4 +1,4 @@
@use "../abstract" as abstract; @use '../abstract' as abstract;
.columns-2, .columns-2,
.columns-3, .columns-3,

View File

@ -1,4 +1,4 @@
@use "../abstract" as abstract; @use '../abstract' as abstract;
#impressum { #impressum {
flex: 0 0 auto; flex: 0 0 auto;

View File

@ -1,11 +1,11 @@
@use "page-layout"; @use 'page-layout';
@use "topmenu"; @use 'topmenu';
@use "leftmenu"; @use 'leftmenu';
@use "footer"; @use 'footer';
@use "mobile-menu"; @use 'mobile-menu';
@use "menu"; @use 'menu';
@use "pageheader"; @use 'pageheader';
@use "side-images"; @use 'side-images';
@use "main-content"; @use 'main-content';
@use "blog"; @use 'blog';
@use "mobile-table"; @use 'mobile-table';

View File

@ -1,4 +1,4 @@
@use "../abstract" as abstract; @use '../abstract' as abstract;
#left-menu { #left-menu {
display: none; display: none;

View File

@ -1,4 +1,4 @@
@use "../abstract" as abstract; @use '../abstract' as abstract;
#content { #content {
flex: 1 0 auto; flex: 1 0 auto;

View File

@ -1,4 +1,4 @@
@use "../abstract" as abstract; @use '../abstract' as abstract;
.nav { .nav {
font-size: inherit; font-size: inherit;

View File

@ -1,4 +1,4 @@
@use "../abstract" as abstract; @use '../abstract' as abstract;
#mobile-menu, #mobile-menu,
#content { #content {

View File

@ -1,4 +1,4 @@
@use "../abstract" as abstract; @use '../abstract' as abstract;
table:not(.no-responsive-table) { table:not(.no-responsive-table) {
width: 100%; width: 100%;

View File

@ -1,4 +1,4 @@
@use "../abstract" as abstract; @use '../abstract' as abstract;
#page-div { #page-div {
width: 100%; width: 100%;

View File

@ -1,4 +1,4 @@
@use "../abstract" as abstract; @use '../abstract' as abstract;
#header { #header {
flex: 0 0 auto; flex: 0 0 auto;

View File

@ -1,4 +1,4 @@
@use "../abstract" as abstract; @use '../abstract' as abstract;
@include abstract.for-desktop { @include abstract.for-desktop {
#left-side-image, #left-side-image,

View File

@ -1,4 +1,4 @@
@use "../abstract/" as abstract; @use '../abstract/' as abstract;
#topmenu { #topmenu {
display: none; display: none;
@ -157,7 +157,6 @@
position: sticky; position: sticky;
top: 0; top: 0;
width: 100%; width: 100%;
// height: 40px;
z-index: 1; z-index: 1;
} }
} }

View File

@ -1,6 +1,6 @@
<?php <?php
// No direct access. // No direct access.
defined('_JEXEC') or die; defined('_JEXEC') or die();
use Joomla\CMS\Uri\Uri; use Joomla\CMS\Uri\Uri;
@ -16,21 +16,29 @@ JHtml::_('bootstrap.loadCss', true, $this->direction);
JHtml::_('jquery.framework'); JHtml::_('jquery.framework');
// Add Stylesheets // Add Stylesheets
JHtml::_('stylesheet', 'templates/system/css/system.css', array('version' => 'auto', 'relative' => false)); JHtml::_('stylesheet', 'templates/system/css/system.css', [
JHtml::_('stylesheet', 'style.css', array('version' => 'auto', 'relative' => true)); 'version' => 'auto',
'relative' => false,
]);
JHtml::_('stylesheet', 'style.css', ['version' => 'auto', 'relative' => true]);
$doc->addStyleSheet($this->baseurl.'/media/system/css/joomla-fontawesome.css'); $doc->addStyleSheet(
$doc->addStyleSheet($this->baseurl.'/templates/slt/css/dynamic-styles.css.php?Itemid=' . $app->input->getInt('Itemid')); $this->baseurl . '/media/system/css/joomla-fontawesome.css'
);
$doc->addStyleSheet(
$this->baseurl .
'/templates/slt/css/dynamic-styles.css.php?Itemid=' .
$app->input->getInt('Itemid')
);
// Add Javascript for mobile menu // Add Javascript for mobile menu
JHtml::_('script', 'mobile.js', array('version' => 'auto', 'relative' => true)); JHtml::_('script', 'mobile.js', ['version' => 'auto', 'relative' => true]);
// Check for a custom CSS file // Check for a custom CSS file
JHtml::_('stylesheet', 'user.css', array('version' => 'auto', 'relative' => true)); JHtml::_('stylesheet', 'user.css', ['version' => 'auto', 'relative' => true]);
// Check for a custom js file // Check for a custom js file
JHtml::_('script', 'user.js', array('version' => 'auto', 'relative' => true)); JHtml::_('script', 'user.js', ['version' => 'auto', 'relative' => true]);
?> ?>
<?php echo '<!DOCTYPE html>'; ?> <?php echo '<!DOCTYPE html>'; ?>
@ -62,7 +70,13 @@ JHtml::_('script', 'user.js', array('version' => 'auto', 'relative' => true));
</div> <!-- #slideshow --> </div> <!-- #slideshow -->
</div> <!-- #header --> </div> <!-- #header -->
<div id='mobile-menu-switch'><?php echo JHtml::_('image', 'mobile_menu.svg', 'Menu', array('width' => '40px', 'id' => 'btn-mobile-menu'), true);?></div> <div id='mobile-menu-switch'><?php echo JHtml::_(
'image',
'mobile_menu.svg',
'Menu',
['width' => '40px', 'id' => 'btn-mobile-menu'],
true
); ?></div>
<div id='mobile-menu'> <div id='mobile-menu'>
<jdoc:include type="modules" style="none" name="mobile_menu" /> <jdoc:include type="modules" style="none" name="mobile_menu" />
</div> </div>

166
slt/package-lock.json generated
View File

@ -8,6 +8,9 @@
"name": "slt", "name": "slt",
"version": "0.0.9", "version": "0.0.9",
"devDependencies": { "devDependencies": {
"@prettier/plugin-php": "^0.18.4",
"prettier": "^2.6.2",
"prettier-config-standard": "^5.0.0",
"sass": "^1.44.0", "sass": "^1.44.0",
"stylelint": "^14.1.0", "stylelint": "^14.1.0",
"stylelint-config-standard-scss": "^3.0.0", "stylelint-config-standard-scss": "^3.0.0",
@ -85,6 +88,20 @@
"node": ">= 8" "node": ">= 8"
} }
}, },
"node_modules/@prettier/plugin-php": {
"version": "0.18.4",
"resolved": "https://registry.npmjs.org/@prettier/plugin-php/-/plugin-php-0.18.4.tgz",
"integrity": "sha512-phnY20asLUpCSDXjCUN7FKGaZZTf1C+PSpTzGMOJ/UfIyD24sYJXCT8qqbcpp7rWI6ZsCsJiZcVnNmLFThx78Q==",
"dev": true,
"dependencies": {
"linguist-languages": "^7.5.1",
"mem": "^8.0.0",
"php-parser": "3.1.0-beta.5"
},
"peerDependencies": {
"prettier": "^1.15.0 || ^2.0.0"
}
},
"node_modules/@types/minimist": { "node_modules/@types/minimist": {
"version": "1.2.2", "version": "1.2.2",
"resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.2.tgz", "resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.2.tgz",
@ -970,6 +987,12 @@
"integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==",
"dev": true "dev": true
}, },
"node_modules/linguist-languages": {
"version": "7.15.0",
"resolved": "https://registry.npmjs.org/linguist-languages/-/linguist-languages-7.15.0.tgz",
"integrity": "sha512-qkSSNDjDDycZ2Wcw+GziNBB3nNo3ddYUInM/PL8Amgwbd9RQ/BKGj2/1d6mdxKgBFnUqZuaDbkIwkE4KUwwmtQ==",
"dev": true
},
"node_modules/locate-path": { "node_modules/locate-path": {
"version": "5.0.0", "version": "5.0.0",
"resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz",
@ -1006,6 +1029,18 @@
"node": ">=10" "node": ">=10"
} }
}, },
"node_modules/map-age-cleaner": {
"version": "0.1.3",
"resolved": "https://registry.npmjs.org/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz",
"integrity": "sha512-bJzx6nMoP6PDLPBFmg7+xRKeFZvFboMrGlxmNj9ClvX53KrmvM5bXFXEWjbz4cz1AFn+jWJ9z/DJSz7hrs0w3w==",
"dev": true,
"dependencies": {
"p-defer": "^1.0.0"
},
"engines": {
"node": ">=6"
}
},
"node_modules/map-obj": { "node_modules/map-obj": {
"version": "4.3.0", "version": "4.3.0",
"resolved": "https://registry.npmjs.org/map-obj/-/map-obj-4.3.0.tgz", "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-4.3.0.tgz",
@ -1028,6 +1063,22 @@
"url": "https://github.com/sponsors/wooorm" "url": "https://github.com/sponsors/wooorm"
} }
}, },
"node_modules/mem": {
"version": "8.1.1",
"resolved": "https://registry.npmjs.org/mem/-/mem-8.1.1.tgz",
"integrity": "sha512-qFCFUDs7U3b8mBDPyz5EToEKoAkgCzqquIgi9nkkR9bixxOVOre+09lbuH7+9Kn2NFpm56M3GUWVbU2hQgdACA==",
"dev": true,
"dependencies": {
"map-age-cleaner": "^0.1.3",
"mimic-fn": "^3.1.0"
},
"engines": {
"node": ">=10"
},
"funding": {
"url": "https://github.com/sindresorhus/mem?sponsor=1"
}
},
"node_modules/meow": { "node_modules/meow": {
"version": "9.0.0", "version": "9.0.0",
"resolved": "https://registry.npmjs.org/meow/-/meow-9.0.0.tgz", "resolved": "https://registry.npmjs.org/meow/-/meow-9.0.0.tgz",
@ -1076,6 +1127,15 @@
"node": ">=8.6" "node": ">=8.6"
} }
}, },
"node_modules/mimic-fn": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-3.1.0.tgz",
"integrity": "sha512-Ysbi9uYW9hFyfrThdDEQuykN4Ey6BuwPD2kpI5ES/nFTDn/98yxYNLZJcgUAKPT/mcrLLKaGzJR9YVxJrIdASQ==",
"dev": true,
"engines": {
"node": ">=8"
}
},
"node_modules/min-indent": { "node_modules/min-indent": {
"version": "1.0.1", "version": "1.0.1",
"resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz",
@ -1168,6 +1228,15 @@
"wrappy": "1" "wrappy": "1"
} }
}, },
"node_modules/p-defer": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/p-defer/-/p-defer-1.0.0.tgz",
"integrity": "sha1-n26xgvbJqozXQwBKfU+WsZaw+ww=",
"dev": true,
"engines": {
"node": ">=4"
}
},
"node_modules/p-limit": { "node_modules/p-limit": {
"version": "2.3.0", "version": "2.3.0",
"resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz",
@ -1267,6 +1336,12 @@
"node": ">=8" "node": ">=8"
} }
}, },
"node_modules/php-parser": {
"version": "3.1.0-beta.5",
"resolved": "https://registry.npmjs.org/php-parser/-/php-parser-3.1.0-beta.5.tgz",
"integrity": "sha512-3F3+yThjD7wn0sMuIG5iMQqutmH+RJUAbEyPW5S/greTp5ZArkpEweylQh+do22q9UJlJT1PrLN/AwnzDUti6Q==",
"dev": true
},
"node_modules/picocolors": { "node_modules/picocolors": {
"version": "1.0.0", "version": "1.0.0",
"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz",
@ -1381,6 +1456,30 @@
"integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==", "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==",
"dev": true "dev": true
}, },
"node_modules/prettier": {
"version": "2.6.2",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.6.2.tgz",
"integrity": "sha512-PkUpF+qoXTqhOeWL9fu7As8LXsIUZ1WYaJiY/a7McAQzxjk82OF0tibkFXVCDImZtWxbvojFjerkiLb0/q8mew==",
"dev": true,
"bin": {
"prettier": "bin-prettier.js"
},
"engines": {
"node": ">=10.13.0"
},
"funding": {
"url": "https://github.com/prettier/prettier?sponsor=1"
}
},
"node_modules/prettier-config-standard": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/prettier-config-standard/-/prettier-config-standard-5.0.0.tgz",
"integrity": "sha512-QK252QwCxlsak8Zx+rPKZU31UdbRcu9iUk9X1ONYtLSO221OgvV9TlKoTf6iPDZtvF3vE2mkgzFIEgSUcGELSQ==",
"dev": true,
"peerDependencies": {
"prettier": "^2.4.0"
}
},
"node_modules/punycode": { "node_modules/punycode": {
"version": "2.1.1", "version": "2.1.1",
"resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz",
@ -2193,6 +2292,17 @@
"fastq": "^1.6.0" "fastq": "^1.6.0"
} }
}, },
"@prettier/plugin-php": {
"version": "0.18.4",
"resolved": "https://registry.npmjs.org/@prettier/plugin-php/-/plugin-php-0.18.4.tgz",
"integrity": "sha512-phnY20asLUpCSDXjCUN7FKGaZZTf1C+PSpTzGMOJ/UfIyD24sYJXCT8qqbcpp7rWI6ZsCsJiZcVnNmLFThx78Q==",
"dev": true,
"requires": {
"linguist-languages": "^7.5.1",
"mem": "^8.0.0",
"php-parser": "3.1.0-beta.5"
}
},
"@types/minimist": { "@types/minimist": {
"version": "1.2.2", "version": "1.2.2",
"resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.2.tgz", "resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.2.tgz",
@ -2871,6 +2981,12 @@
"integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==",
"dev": true "dev": true
}, },
"linguist-languages": {
"version": "7.15.0",
"resolved": "https://registry.npmjs.org/linguist-languages/-/linguist-languages-7.15.0.tgz",
"integrity": "sha512-qkSSNDjDDycZ2Wcw+GziNBB3nNo3ddYUInM/PL8Amgwbd9RQ/BKGj2/1d6mdxKgBFnUqZuaDbkIwkE4KUwwmtQ==",
"dev": true
},
"locate-path": { "locate-path": {
"version": "5.0.0", "version": "5.0.0",
"resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz",
@ -2901,6 +3017,15 @@
"yallist": "^4.0.0" "yallist": "^4.0.0"
} }
}, },
"map-age-cleaner": {
"version": "0.1.3",
"resolved": "https://registry.npmjs.org/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz",
"integrity": "sha512-bJzx6nMoP6PDLPBFmg7+xRKeFZvFboMrGlxmNj9ClvX53KrmvM5bXFXEWjbz4cz1AFn+jWJ9z/DJSz7hrs0w3w==",
"dev": true,
"requires": {
"p-defer": "^1.0.0"
}
},
"map-obj": { "map-obj": {
"version": "4.3.0", "version": "4.3.0",
"resolved": "https://registry.npmjs.org/map-obj/-/map-obj-4.3.0.tgz", "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-4.3.0.tgz",
@ -2913,6 +3038,16 @@
"integrity": "sha512-APMBEanjybaPzUrfqU0IMU5I0AswKMH7k8OTLs0vvV4KZpExkTkY87nR/zpbuTPj+gARop7aGUbl11pnDfW6xg==", "integrity": "sha512-APMBEanjybaPzUrfqU0IMU5I0AswKMH7k8OTLs0vvV4KZpExkTkY87nR/zpbuTPj+gARop7aGUbl11pnDfW6xg==",
"dev": true "dev": true
}, },
"mem": {
"version": "8.1.1",
"resolved": "https://registry.npmjs.org/mem/-/mem-8.1.1.tgz",
"integrity": "sha512-qFCFUDs7U3b8mBDPyz5EToEKoAkgCzqquIgi9nkkR9bixxOVOre+09lbuH7+9Kn2NFpm56M3GUWVbU2hQgdACA==",
"dev": true,
"requires": {
"map-age-cleaner": "^0.1.3",
"mimic-fn": "^3.1.0"
}
},
"meow": { "meow": {
"version": "9.0.0", "version": "9.0.0",
"resolved": "https://registry.npmjs.org/meow/-/meow-9.0.0.tgz", "resolved": "https://registry.npmjs.org/meow/-/meow-9.0.0.tgz",
@ -2949,6 +3084,12 @@
"picomatch": "^2.3.1" "picomatch": "^2.3.1"
} }
}, },
"mimic-fn": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-3.1.0.tgz",
"integrity": "sha512-Ysbi9uYW9hFyfrThdDEQuykN4Ey6BuwPD2kpI5ES/nFTDn/98yxYNLZJcgUAKPT/mcrLLKaGzJR9YVxJrIdASQ==",
"dev": true
},
"min-indent": { "min-indent": {
"version": "1.0.1", "version": "1.0.1",
"resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz",
@ -3020,6 +3161,12 @@
"wrappy": "1" "wrappy": "1"
} }
}, },
"p-defer": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/p-defer/-/p-defer-1.0.0.tgz",
"integrity": "sha1-n26xgvbJqozXQwBKfU+WsZaw+ww=",
"dev": true
},
"p-limit": { "p-limit": {
"version": "2.3.0", "version": "2.3.0",
"resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz",
@ -3089,6 +3236,12 @@
"integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==",
"dev": true "dev": true
}, },
"php-parser": {
"version": "3.1.0-beta.5",
"resolved": "https://registry.npmjs.org/php-parser/-/php-parser-3.1.0-beta.5.tgz",
"integrity": "sha512-3F3+yThjD7wn0sMuIG5iMQqutmH+RJUAbEyPW5S/greTp5ZArkpEweylQh+do22q9UJlJT1PrLN/AwnzDUti6Q==",
"dev": true
},
"picocolors": { "picocolors": {
"version": "1.0.0", "version": "1.0.0",
"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz",
@ -3161,6 +3314,19 @@
"integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==", "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==",
"dev": true "dev": true
}, },
"prettier": {
"version": "2.6.2",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.6.2.tgz",
"integrity": "sha512-PkUpF+qoXTqhOeWL9fu7As8LXsIUZ1WYaJiY/a7McAQzxjk82OF0tibkFXVCDImZtWxbvojFjerkiLb0/q8mew==",
"dev": true
},
"prettier-config-standard": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/prettier-config-standard/-/prettier-config-standard-5.0.0.tgz",
"integrity": "sha512-QK252QwCxlsak8Zx+rPKZU31UdbRcu9iUk9X1ONYtLSO221OgvV9TlKoTf6iPDZtvF3vE2mkgzFIEgSUcGELSQ==",
"dev": true,
"requires": {}
},
"punycode": { "punycode": {
"version": "2.1.1", "version": "2.1.1",
"resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz",

View File

@ -4,13 +4,18 @@
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",
"stylelint": "npx stylelint css/*.scss css/**/*.scss --cache", "stylelint": "npx stylelint css/*.scss css/**/*.scss --cache",
"stylelint-fix": "npx stylelint css/**.scss css/**/*.scss --fix", "stylelint:fix": "npx stylelint css/**.scss css/**/*.scss --fix",
"prettier": "npx prettier -c css/**/*.scss **/*.php",
"prettier:fix": "npx prettier -w css/**/*.scss **/*.php **.php",
"sass": "npx sass css/style.scss:css/style.css -s compressed --no-source-map", "sass": "npx sass css/style.scss:css/style.css -s compressed --no-source-map",
"sass-dev": "npx sass css/style.scss:css/style.css", "sass-dev": "npx sass css/style.scss:css/style.css",
"sass-watch": "npx sass css/style.scss:css/style.css --watch" "sass-watch": "npx sass css/style.scss:css/style.css --watch"
}, },
"author": "Christian Wolf", "author": "Christian Wolf",
"devDependencies": { "devDependencies": {
"@prettier/plugin-php": "^0.18.4",
"prettier": "^2.6.2",
"prettier-config-standard": "^5.0.0",
"sass": "^1.44.0", "sass": "^1.44.0",
"stylelint": "^14.1.0", "stylelint": "^14.1.0",
"stylelint-config-standard-scss": "^3.0.0", "stylelint-config-standard-scss": "^3.0.0",

7
slt/prettier.config.js Normal file
View File

@ -0,0 +1,7 @@
let config = require("prettier-config-standard");
config.tabWidth = 4;
// config.singleQuote = false;
// console.log(config)
module.exports = config;