eslint-config-snow
v1.0.4
Published
ESLint config for ServiceNow code based off airbnb style. All configurations originated from https://www.npmjs.com/package/eslint-config-servicenow
Downloads
23
Readme
ServiceNow ESLint
ServiceNow ES5 ESLint configuration following the Airbnb ES5 Style Guide. This package includes global ServiceNow variables and some additional ESLint rules.
Quick Start
- Run this command in terminal
npm i --save-dev eslint-config-snow
- Add file called ".eslintrc" in your root directory
- In the file add the following:
{ "extends": "snow" }
- Add a .js file to your project and begin coding! 👍
Added Lint Rules
rules: {
"space-before-function-paren": [2, "never"],
"func-names": 0,
"no-use-before-define": [2, {
"variables": false,
"functions": false
}],
"no-plusplus": 0,
"block-scoped-var": 0,
"vars-on-top": 0,
"brace-style": [2, "1tbs"],
"semi": [2, "always"],
"no-underscore-dangle": [2, {
"allowAfterThis": true
}]
}
This was created from eslint-config-servicenow with some additional rules in the index.js file.