zackad / manga-server

Serve your manga collection over network.
MIT License
3 stars 0 forks source link

Refactor: Introduce custom twig filter to fix prettier unsupported filter syntax #142

Closed zackad closed 2 years ago

zackad commented 2 years ago

Prettier doesn't support twig filter filter syntax.

{% set numbers = [8, 9, 10, 11, 12] %}
{{ numbers|filter(number => number > 10) }}
codecov[bot] commented 2 years ago

Codecov Report

Merging #142 (7c6d399) into master (6b9d8a2) will not change coverage. The diff coverage is 100.00%.

@@             Coverage Diff             @@
##              master      #142   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
- Complexity        65        68    +3     
===========================================
  Files             13        13           
  Lines            271       281   +10     
===========================================
+ Hits             271       281   +10     
Impacted Files Coverage Δ
src/Twig/AppExtension.php 100.00% <100.00%> (ø)

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more