1.0.3 • Published 6 months ago
@sfdocs-internal/image-linting-rules v1.0.3
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.
1.0.2
6 months ago
1.0.1
6 months ago
1.0.1-multiple-classes1
6 months ago
1.0.3
6 months ago
1.0.0
11 months ago
0.0.1-linting-rules-3
1 year ago
0.0.1-linting-rules-2
1 year ago
0.0.1-linting-rules-1
1 year ago