Skip to content

custom rules docs #201

Answered by ericanderson
stropho asked this question in Q&A
Discussion options

You must be logged in to vote

Hello.

I fully intended to write some docs for you tonight but I realized all the docs committed reflected things from the 0.4 series while main is tracking the 0.5.0 series (which you can get on NPM btw). And I decided to fix that first. See #200

The rules built in are a decent starting place to investigate the future. There is some cruft in there to support back compat but for a new rule you basically just need to export a class.

An easy example would be https://github.com/monorepolint/monorepolint/blob/main/packages/rules/src/alphabeticalDependencies.ts

You would need to implement NewRuleModule from @monorepolint/config: https://github.com/monorepolint/monorepolint/blob/main/packages/c…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ericanderson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #199 on February 03, 2023 03:09.