1.0.3 • Published 6 months ago

@sfdocs-internal/image-linting-rules v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

Image Linting Rules

About

This plugin is to validate image title syntax. We are validating whether provided JSON is valid and class is from one of the defined classes.

Invalid Class Input:

![SalesforceDocs](../../../media/salesforcedocs.png '{"class": "custom-class", "title": "custom title"}')

Output:

Invalid class value in image syntax. 'custom-class' is not an allowed class.

Invalid JSON Input(No comma):

![SalesforceDocs](../../../media/salesforcedocs.png '{"class": "custom-class" "title": "custom title"}')

Output:

Invalid JSON in image syntax. '{"class": "custom-class" "title": "custom title"}' is not a valid JSON.

Install & build

yarn install && yarn build

Pubilsh

yarn publish

Please make sure to push your changes (version number & other changes) to git once publishing is complete.