Skip to content

Instantly share code, notes, and snippets.

@mig82
Last active November 27, 2020 10:38
Show Gist options
  • Save mig82/f757583132c50e73527b54ce6bb6a28b to your computer and use it in GitHub Desktop.
Save mig82/f757583132c50e73527b54ce6bb6a28b to your computer and use it in GitHub Desktop.
EsLint config for Vis Quantum
/* AUTO GENERATED CONTENT */
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
module.exports = mod();
else if (typeof define == "function" && define.amd) // AMD
return define([], mod);
else // Plain browser env
return mod();
})(function() {
return {
"parser": "kspree",
"env": {
"es6": true,
"amd": true,
"jasmine": true
},
"globals": {
"kony": "readonly",
"KNYMobileFabric": "readonly",
"KNYMetricsService": "readonly",
"constants": "readonly",
"alert": "readonly",
"defineSetter": "readonly", //For component custom properties
"defineGetter": "readonly" //For component custom properties
},
"rules": {
"block-scoped-var": "warn",
"comma-dangle": "error",
"comma-style": "warn",
"complexity": ["warn",7],
"constructor-super": "warn",
"curly": ["warn", "multi-line"],
"eqeqeq": "warn",
"guard-for-in": "warn",
"linebreak-style": "warn",
"max-depth": ["warn",4],
"max-params": ["warn",8],
"max-statements": ["warn",20],
"max-lines": ["error", {"max": 200, "skipBlankLines": true, "skipComments": true}],
"no-caller": "warn",
"no-case-declarations": "warn",
"no-class-assign": "warn",
"no-compare-neg-zero": "error",
"no-cond-assign": "error",
"no-console": "error",
"no-const-assign": "warn",
"no-constant-condition": "error",
"no-control-regex": "error",
"no-debugger": "error",
"no-delete-var": "warn",
"no-dupe-args": "error",
"no-dupe-class-members": "warn",
"no-dupe-keys": "error",
"no-duplicate-case": "error",
"no-empty-character-class": "error",
"no-empty-pattern": "warn",
"no-eq-null": "warn",
"no-eval": "warn",
"no-ex-assign": "error",
"no-extra-semi": "error",
"no-fallthrough": "warn",
"no-func-assign": "error",
"no-global-assign": "warn",
"no-inner-declarations": "error",
"no-invalid-regexp": "error",
"no-irregular-whitespace": "error",
"no-iterator": "warn",
"no-loop-func": "warn",
"no-mixed-spaces-and-tabs": "warn",
"no-multi-str": "warn",
"no-multiple-empty-lines": "warn",
"no-new-func": "warn",
"no-new-object": "warn",
"no-new-symbol": "warn",
"no-new-wrappers": "warn",
"no-obj-calls": "error",
"no-octal": "warn",
"no-proto": "warn",
"no-redeclare": "warn",
"no-regex-spaces": "error",
"no-script-url": "warn",
"no-self-assign": "warn",
"no-shadow": "warn",
"no-sparse-arrays": "error",
"no-this-before-super": "warn",
"no-trailing-spaces": "warn",
"no-undef": "error",
"no-unreachable": "error",
"no-unsafe-finally": "error",
"no-unsafe-negation": "error",
"no-unused-labels": "warn",
"no-unused-vars": "warn",
"no-useless-escape": "warn",
"require-yield": "warn",
"use-isnan": "error",
"valid-typeof": "error"
},
"parserOptions": {
"ecmaVersion": 8
}
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment