Skip to content
This repository has been archived by the owner on Mar 30, 2021. It is now read-only.

This rule enforces a limit of emojis per paragraph.

License

Notifications You must be signed in to change notification settings

zerok/remark-lint-emoji-limit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

remark-lint-emoji-limit

This rule for remark-lint enforces that there is at most one emoji in each paragraph:

{
    "plugins": [
        "remark-preset-lint-recommended",
        "remark-lint-emoji-limit"
    ]
}

If you want to set the limit higher, you can do so by setting a max property accordingly:

{
    "plugins": [
        // ...
        ["remark-lint-emoji-limit", ["warn", {
            "max": 2
        }]]
    ]
}

This would allow for up to two emojis per paragraph.