Skip to content

Latest commit

 

History

History
51 lines (35 loc) · 824 Bytes

api-version.md

File metadata and controls

51 lines (35 loc) · 824 Bytes

suitescript/api-version

Enforces valid @NApiVersion tag values in the header block comment of every SuiteScript file.

Does not report missing @NApiVersion tags.

Rule Details

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
 */

Version

This rule was introduced in version 1.0.0.

Source