Skip to content

ESLint plugin for NetSuite's SuiteScript v1/2 API.

License

Notifications You must be signed in to change notification settings

acdvs/eslint-plugin-suitescript

Repository files navigation

License npm CI

eslint-plugin-suitescript

NetSuite SuiteScript v1/v2 linting rules for ESLint

Installation

Installation per project is highly recommended:

$ npm i -D eslint eslint-plugin-suitescript

Configuration

Add "suitescript" to the plugins section of your ESLint config file.

"plugins": ["suitescript"]

Enable the rules that you would like to use.

"rules": {
  "suitescript/script-type": "error",
  "suitescript/no-log-module": "error",
}

Or use a predefined setting for quick setup (choose one).

// All available rules
"extends": ["plugin:suitescript/all"]

// Just the recommended rules
"extends": ["plugin:suitescript/recommended"]

List of supported rules

License

eslint-plugin-suitescript is licensed under the MIT License.