eslint / config-inspector

A visual tool for inspecting and understanding your ESLint flat configs.
https://www.npmjs.com/package/@eslint/config-inspector
Apache License 2.0
518 stars 15 forks source link

fix: Better handling for long config names #60

Closed clemyan closed 3 weeks ago

clemyan commented 3 weeks ago

The config inspector does not handle long config names particularly well when there isn't enough screen width

Configs page

In the configs page, the config name breaks in weird ways and, more importantly, misaligns the stats.

image

This PR makes it so that when there isn't enough screen width, the config name breaks first. Then if there still isn't enough, the stats wraps.

image

image

Files page

In the files page, the config name breaks but is centered.

image

The PR makes the config name aligned

image

eslint-github-bot[bot] commented 3 weeks ago

Hi @clemyan!, thanks for the Pull Request

The pull request title isn't properly formatted. We ask that you update the pull request title to match this format, as we use it to generate changelogs and automate releases.

To Fix: You can fix this problem by clicking 'Edit' next to the pull request title at the top of this page.

Read more about contributing to ESLint here

linux-foundation-easycla[bot] commented 3 weeks ago

CLA Signed


The committers listed above are authorized under a signed CLA.