Enforces valid @NApiVersion
tag values in the header block comment of every SuiteScript file.
Does not report missing @NApiVersion
tags.
Valid tag values are 1.0
, 2.x
, 2.0
, and 2.1
.
✅ Using one of these values, the following pattern is correct:
/* eslint suitescript/api-version: "error" */
/**
* @NApiVersion [value]
*/
❌ The following patterns are incorrect:
/* eslint suitescript/api-version: "error" */
/**
* @NApiVersion
*/
/* eslint suitescript/api-version: "error" */
/**
* @NApiVersion2
*/
/* eslint suitescript/api-version: "error" */
/**
* @NApiVersion 2
*/
This rule was introduced in version 1.0.0.