Skip to content

chore(webui): adding prettier#1916

Open
gnugomez wants to merge 3 commits into
eclipse-openvsx:mainfrom
gnugomez:gnugomez/main/prettier
Open

chore(webui): adding prettier#1916
gnugomez wants to merge 3 commits into
eclipse-openvsx:mainfrom
gnugomez:gnugomez/main/prettier

Conversation

@gnugomez

Copy link
Copy Markdown
Member

The problem we're facing right now is that despite we do have some stylistic rules we were not enforcing a full config, meaning that we did not had much formatting rules working, those were really minimal and don't provide help most of the time to keep code formatting consistent.

I tailored a prettier config to reduce how many changes will it produce, although 169 files will be affected.

I'm replacing @stylistic/eslint-plugin with prettier since it's provides a wider more opinionated formatting.

To keep things consistent to how we were working up to now I made prettier work through eslint, this way we will only run prettier once per file.

@gnugomez gnugomez requested review from amvanbaren and netomi June 16, 2026 13:55
@gnugomez

Copy link
Copy Markdown
Member Author

@amvanbaren I know you added https://eslint.style/ not too long ago to the project, although not many formatting was happening, was this intended?

I'm creating this PR because while working on some patches it got really painful to get things formatted. Things like JSX was not really being formatted. Overall it felt quite inconsistent.

Comment thread webui/eslint.config.mjs
parser: tsParser,
},

settings: {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

note: I'm moving this out since was producing some warnings bc react config was not scoped

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant