From 6cdbea5084d8671293d75fbb6608d9d7d848c776 Mon Sep 17 00:00:00 2001 From: Alexander Kellner Date: Fri, 29 Nov 2024 12:52:09 +0100 Subject: [PATCH] [TASK] Make TypoScript linter happy It turned out that setting template paths via TSconfig leads to a sniffing error. That's why we exclude the template path from LUXletter in TS lint configuration See https://github.com/martin-helmich/typo3-typoscript-lint/issues/188 for details --- .project/tests/typoscript-lint.yml | 2 ++ Configuration/TSConfig/Lux.typoscript | 3 --- Configuration/TSConfig/LuxLetter.typoscript | 2 ++ ext_localconf.php | 3 ++- 4 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 Configuration/TSConfig/LuxLetter.typoscript diff --git a/.project/tests/typoscript-lint.yml b/.project/tests/typoscript-lint.yml index 4189cb80..effe08ea 100644 --- a/.project/tests/typoscript-lint.yml +++ b/.project/tests/typoscript-lint.yml @@ -3,6 +3,8 @@ paths: filePatterns: - "*.tsconfig" - "*.typoscript" +excludePatterns: + - "LuxLetter.typoscript" sniffs: - class: Indentation parameters: diff --git a/Configuration/TSConfig/Lux.typoscript b/Configuration/TSConfig/Lux.typoscript index 96c104b5..fd448e08 100644 --- a/Configuration/TSConfig/Lux.typoscript +++ b/Configuration/TSConfig/Lux.typoscript @@ -37,6 +37,3 @@ TCEMAIN.linkHandler.luxlinklistener { RTE.default.proc.entryHTMLparser_db.tags { a.allowedAttribs := addToList(data-lux-email4link-sendemail,data-lux-email4link-text,data-lux-email4link-title,data-lux-linklistener) } - -# Overrule LUXletter backend module view for receiver list -templates.in2code/luxletter.1732878717 = in2code/lux:/Resources/Private/ diff --git a/Configuration/TSConfig/LuxLetter.typoscript b/Configuration/TSConfig/LuxLetter.typoscript new file mode 100644 index 00000000..cce27cc0 --- /dev/null +++ b/Configuration/TSConfig/LuxLetter.typoscript @@ -0,0 +1,2 @@ +# Overrule LUXletter backend module view for receiver list +templates.in2code/luxletter.1732878717 = in2code/lux:/Resources/Private/ diff --git a/ext_localconf.php b/ext_localconf.php index f608169b..13810883 100644 --- a/ext_localconf.php +++ b/ext_localconf.php @@ -29,7 +29,8 @@ function () { * Add page TSConfig */ \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig( - '@import \'EXT:lux/Configuration/TSConfig/Lux.typoscript\'' + '@import \'EXT:lux/Configuration/TSConfig/Lux.typoscript\'' . PHP_EOL . + '@import \'EXT:lux/Configuration/TSConfig/LuxLetter.typoscript\'' ); /**