Skip to content

Make eslint-compact matcher compatible with Stylelint - #98

Merged
v-HarithaVattikuti merged 2 commits into
actions:mainfrom
FloEdelmann:patch-1
Mar 24, 2025
Merged

Make eslint-compact matcher compatible with Stylelint#98
v-HarithaVattikuti merged 2 commits into
actions:mainfrom
FloEdelmann:patch-1

Conversation

@FloEdelmann

@FloEdelmann FloEdelmann commented Dec 27, 2019

Copy link
Copy Markdown
Contributor

Stylelint has a compact formatter that is (nearly) compatible with ESLint one's.

It outputs lowercase severity strings though, so eslint-compact matcher's RegExp is not triggered.

This PR changes the matcher to also match lowercase severity strings.

Alternatively, the matcher could be duplicated as stylelint-compact and both RegExps could target exact lowercase/uppercase severities.


Example check run containing Stylelint output: https://github.com/OpenLightingProject/open-fixture-library/pull/1163/checks?check_run_id=365592295

ghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

ghost commented Apr 10, 2020

Copy link
Copy Markdown

I really want this update! 🙏

ghost commented Jan 20, 2021

Copy link
Copy Markdown

any interest in updating PR to target main instead of master?

@ghost
ghost changed the base branch from master to main January 20, 2021 19:48

ghost commented Jan 20, 2021

Copy link
Copy Markdown
Author

@bryanmacfarlane Done 👌

@ghost
ghost self-requested a review August 15, 2022 08:36

ghost commented Nov 21, 2022

Copy link
Copy Markdown

Stylelint has a compact formatter that is (nearly) compatible with ESLint one's.

It outputs lowercase severity strings though, so eslint-compact matcher's RegExp is not triggered.

This PR changes the matcher to also match lowercase severity strings.

Alternatively, the matcher could be duplicated as stylelint-compact and both RegExps could target exact lowercase/uppercase severities.

Example check run containing Stylelint output: https://github.com/OpenLightingProject/open-fixture-library/pull/1163/checks?check_run_id=365592295

ghost commented Feb 29, 2024

Copy link
Copy Markdown

Friendly ping 🏓

@ghost ghost assigned ghost and unassigned ghost Mar 21, 2025
@ghost
ghost merged commit 1ccdddc into actions:main Mar 24, 2025
@ghost
ghost deleted the patch-1 branch March 24, 2025 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

10 participants