Skip to content

Commit

Permalink
[TASK] Make TypoScript linter happy
Browse files Browse the repository at this point in the history
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
  • Loading branch information
einpraegsam committed Nov 29, 2024
1 parent ed65846 commit 6cdbea5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .project/tests/typoscript-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ paths:
filePatterns:
- "*.tsconfig"
- "*.typoscript"
excludePatterns:
- "LuxLetter.typoscript"
sniffs:
- class: Indentation
parameters:
Expand Down
3 changes: 0 additions & 3 deletions Configuration/TSConfig/Lux.typoscript
Original file line number Diff line number Diff line change
Expand Up @@ -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/
2 changes: 2 additions & 0 deletions Configuration/TSConfig/LuxLetter.typoscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Overrule LUXletter backend module view for receiver list
templates.in2code/luxletter.1732878717 = in2code/lux:/Resources/Private/
3 changes: 2 additions & 1 deletion ext_localconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -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\''
);

/**
Expand Down

0 comments on commit 6cdbea5

Please sign in to comment.