storybookjs / eslint-plugin-storybook

🎗Official ESLint plugin for Storybook
MIT License
245 stars 52 forks source link

Automate docs with eslint-doc-generator #108

Closed bmish closed 1 year ago

bmish commented 1 year ago

What Changed

eslint-doc-generator is a CLI tool I built for automating the generation of the README rules list table and rule doc title/notices for ESLint plugins. It follows common documentation conventions from this and other top ESLint plugins and will help us standardize documentation across ESLint plugins (and generally improve the usability of custom rules through better documentation and streamline the process of adding new rules). It has 100% test coverage and is used in many of the top ESLint plugins already. It replaces the existing documentation generation scripts in this repository.

Notable differences:

Checklist

Check the ones applicable to your change:

Change Type

Indicate the type of change your pull request is:

yannbf commented 1 year ago

Hey @bmish I appreciate the contribution! Your tool seems pretty cool, but I think the resulting README looks much more confusing than the original one.

image

bmish commented 1 year ago

Okay, fair enough, I'll close it then. Just want to note a few differences:

The new rules table would generally look more aesthetic if an emoji was chosen for each config. Since it's hard to represent these configs with emojis, I used badges instead for now, so we end up with a mix of emojis and badges in the table.

yannbf commented 1 year ago

Indeed! I'll keep an eye out in your tool, maybe it could be used here in the future. Thank you so much for your time and contribution! <3