Linter

Table of Contents

Introduction

As Rockplate is a templating language, any syntax error you make or any invalid expression or invalid if blocks/repeat blocks are just ignored without throwing any errors.

As a result, error handling becomes a challenge. Thanks to the built in Linter that comes as a life saver for this purpose.

Usage

JavaScript/TypeScript

Warnings

Warnings occur when you provide any params incompatible to your schema in strict mode.

schema

params (note the extra property age which is not available in the schema)

Try toggling the strict mode switch to on/off (in schema tab) to see the difference in output and lints.

Complete Example


Made with ❤️ from Safraz Razik