Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

eslint-plugin-servicenow

0.1.0 • Public • Published

eslint-plugin-servicenow

ServiceNow lint rules

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-servicenow:

$ npm install eslint-plugin-servicenow --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-servicenow globally.

Usage

Add servicenow to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "servicenow"
    ]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
      "servicenow/no-hardcoded-sysids": 1,
      "servicenow/dont-use-gr-as-variablename": 1,
      "servicenow/minimize-gs-log-print": 1,
      "servicenow/no-packages-calls": 1
    }
}

Supported Rules

  • listed in rules section

Install

npm i eslint-plugin-servicenow

DownloadsWeekly Downloads

3

Version

0.1.0

License

MIT

Unpacked Size

7.41 kB

Total Files

9

Last publish

Collaborators

  • avatar