Created
August 22, 2022 13:24
-
-
Save Leoooob/fecd43da2662288cf9c1c35a60573178 to your computer and use it in GitHub Desktop.
SAPUI5 eslint config template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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