Skip to content

Instantly share code, notes, and snippets.

@Leoooob
Created August 22, 2022 13:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Leoooob/fecd43da2662288cf9c1c35a60573178 to your computer and use it in GitHub Desktop.
Save Leoooob/fecd43da2662288cf9c1c35a60573178 to your computer and use it in GitHub Desktop.
SAPUI5 eslint config template
{
"env": {
"browser": true
},
"globals": {
"sap": true,
"jQuery": true
},
"rules": {
"block-scoped-var": 1,
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
"consistent-this": 2,
"strict": [2, "function"],
"no-div-regex": 2,
"no-floating-decimal": 2,
"no-self-compare": 2,
"no-mixed-spaces-and-tabs": [2, true],
"no-nested-ternary": 2,
"no-unused-vars": [2, { "vars": "all", "args": "none" }],
"radix": 2,
"keyword-spacing": [2],
"space-unary-ops": 2,
"wrap-iife": [2, "any"],
"camelcase": 1,
"consistent-return": 1,
"max-nested-callbacks": [1, 3],
"new-cap": 1,
"no-extra-boolean-cast": 1,
"no-lonely-if": 1,
"no-new": 1,
"no-new-wrappers": 1,
"no-redeclare": 1,
"no-unused-expressions": 1,
"no-use-before-define": [1, "nofunc"],
"no-warning-comments": 1,
"valid-jsdoc": [
1,
{
"requireReturn": false
}
],
"default-case": 1,
"dot-notation": 0,
"eol-last": 0,
"eqeqeq": 0,
"no-trailing-spaces": 0,
"no-underscore-dangle": 0,
"quotes": 0
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment