-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: autogenerate rules table on website (#5116)
* docs: autogenerate rules table on website * migrate rule attributes to global data * add mdlint ignore * add filter * avoid redirecting to main site * merge two columns * this is hard * refactor * tweak colors * ok - memoize this * refactors more * Apply suggestions from code review Co-authored-by: Brad Zacher <brad.zacher@gmail.com> * ok, use classes * vertially arrange icons * Remove rules table from README * minor refactors * Accessibility labels Co-authored-by: Brad Zacher <brad.zacher@gmail.com> Co-authored-by: Josh Goldberg <me@joshuakgoldberg.com>
- Loading branch information
1 parent
2de7223
commit 507629a
Showing
14 changed files
with
457 additions
and
573 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import * as eslintPlugin from '@typescript-eslint/eslint-plugin'; | ||
|
||
export const rulesMeta = Object.entries(eslintPlugin.rules).map( | ||
([name, content]) => ({ | ||
name, | ||
type: content.meta.type, | ||
docs: content.meta.docs, | ||
fixable: content.meta.fixable, | ||
hasSuggestions: content.meta.hasSuggestions, | ||
deprecated: content.meta.deprecated, | ||
replacedBy: content.meta.replacedBy, | ||
}), | ||
); | ||
|
||
export type RulesMeta = typeof rulesMeta; |
Oops, something went wrong.