2017-01-26 15:49:02 +01:00
|
|
|
{
|
2019-08-23 08:20:33 +02:00
|
|
|
"parser": "babel-eslint",
|
2017-06-12 20:30:58 +02:00
|
|
|
"parserOptions": {
|
2018-10-23 03:41:38 +02:00
|
|
|
"ecmaVersion": 2017,
|
2019-08-23 08:20:33 +02:00
|
|
|
"sourceType": "module",
|
|
|
|
"allowImportExportEverywhere": true
|
2017-06-12 20:30:58 +02:00
|
|
|
},
|
2017-01-26 15:49:02 +01:00
|
|
|
"env": {
|
|
|
|
"browser": true,
|
|
|
|
"jasmine": true
|
|
|
|
},
|
|
|
|
"plugins": ["lodash"],
|
|
|
|
"extends": ["eslint:recommended", "plugin:lodash/canonical"],
|
|
|
|
"globals": {
|
2018-08-04 20:20:05 +02:00
|
|
|
"Uint8Array": true,
|
2018-05-12 19:37:44 +02:00
|
|
|
"Promise": true,
|
2018-06-04 10:26:44 +02:00
|
|
|
"converse": true,
|
2017-02-27 11:34:57 +01:00
|
|
|
"define": true,
|
2018-05-12 19:37:44 +02:00
|
|
|
"require": true,
|
|
|
|
"sinon": true,
|
|
|
|
"window": true
|
2017-01-26 15:49:02 +01:00
|
|
|
},
|
|
|
|
"rules": {
|
2019-06-17 21:42:55 +02:00
|
|
|
"lodash/prefer-lodash-chain": "off",
|
2019-10-24 14:29:15 +02:00
|
|
|
"lodash/prefer-lodash-method": "off",
|
2019-05-22 14:03:13 +02:00
|
|
|
"lodash/import-scope": "off",
|
2017-01-26 15:49:02 +01:00
|
|
|
"lodash/prefer-constant": "off",
|
2019-08-05 01:39:57 +02:00
|
|
|
"lodash/prefer-get": "off",
|
2018-09-03 14:06:18 +02:00
|
|
|
"lodash/prefer-includes": "off",
|
2019-08-05 01:39:57 +02:00
|
|
|
"lodash/prefer-invoke-map": "off",
|
|
|
|
"lodash/prefer-is-nil": "off",
|
|
|
|
"lodash/prefer-lodash-typecheck": "off",
|
|
|
|
"lodash/prefer-noop": "off",
|
|
|
|
"lodash/prefer-startswith": "off",
|
2017-01-26 15:49:02 +01:00
|
|
|
"lodash/preferred-alias": "off",
|
2019-08-15 13:43:36 +02:00
|
|
|
"lodash/matches-prop-shorthand": "off",
|
2017-01-26 15:49:02 +01:00
|
|
|
"accessor-pairs": "error",
|
|
|
|
"array-bracket-spacing": "off",
|
|
|
|
"array-callback-return": "error",
|
2018-03-29 16:12:19 +02:00
|
|
|
"arrow-body-style": "off",
|
2018-07-08 10:13:15 +02:00
|
|
|
"arrow-parens": "off",
|
2017-01-26 15:49:02 +01:00
|
|
|
"arrow-spacing": "error",
|
|
|
|
"block-scoped-var": "off",
|
|
|
|
"block-spacing": "off",
|
|
|
|
"brace-style": "off",
|
|
|
|
"callback-return": "off",
|
|
|
|
"camelcase": "off",
|
|
|
|
"capitalized-comments": "off",
|
|
|
|
"class-methods-use-this": "error",
|
|
|
|
"comma-dangle": "off",
|
|
|
|
"comma-spacing": "off",
|
|
|
|
"comma-style": "off",
|
|
|
|
"complexity": "off",
|
|
|
|
"computed-property-spacing": [
|
|
|
|
"error",
|
|
|
|
"never"
|
|
|
|
],
|
|
|
|
"consistent-return": "off",
|
|
|
|
"consistent-this": "off",
|
|
|
|
"curly": "off",
|
|
|
|
"default-case": "off",
|
|
|
|
"dot-location": [
|
|
|
|
"error",
|
|
|
|
"property"
|
|
|
|
],
|
|
|
|
"dot-notation": [
|
2018-04-18 16:55:26 +02:00
|
|
|
"off",
|
2017-01-26 15:49:02 +01:00
|
|
|
{
|
2017-07-21 12:41:16 +02:00
|
|
|
"allowKeywords": true
|
2017-01-26 15:49:02 +01:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"eol-last": "error",
|
|
|
|
"eqeqeq": "off",
|
|
|
|
"func-call-spacing": "off",
|
|
|
|
"no-spaced-func": "off",
|
|
|
|
"func-name-matching": "error",
|
|
|
|
"func-names": "off",
|
|
|
|
"func-style": "off",
|
|
|
|
"generator-star-spacing": "error",
|
|
|
|
"global-require": "off",
|
|
|
|
"guard-for-in": "error",
|
|
|
|
"handle-callback-err": "error",
|
|
|
|
"id-blacklist": "error",
|
|
|
|
"id-length": "off",
|
|
|
|
"id-match": "error",
|
|
|
|
"indent": "off",
|
|
|
|
"init-declarations": "off",
|
|
|
|
"jsx-quotes": "error",
|
|
|
|
"key-spacing": "off",
|
|
|
|
"keyword-spacing": "off",
|
|
|
|
"line-comment-position": "off",
|
|
|
|
"linebreak-style": [
|
|
|
|
"error",
|
|
|
|
"unix"
|
|
|
|
],
|
|
|
|
"lines-around-comment": "off",
|
|
|
|
"lines-around-directive": "off",
|
|
|
|
"max-depth": "error",
|
|
|
|
"max-len": "off",
|
|
|
|
"max-lines": "off",
|
2018-04-14 21:13:02 +02:00
|
|
|
"max-nested-callbacks": "off",
|
2017-01-26 15:49:02 +01:00
|
|
|
"max-params": "off",
|
|
|
|
"max-statements": "off",
|
|
|
|
"max-statements-per-line": "off",
|
|
|
|
"multiline-ternary": "off",
|
|
|
|
"new-parens": "error",
|
|
|
|
"newline-after-var": "off",
|
|
|
|
"newline-before-return": "off",
|
|
|
|
"newline-per-chained-call": "off",
|
|
|
|
"no-alert": "off",
|
|
|
|
"no-array-constructor": "error",
|
|
|
|
"no-await-in-loop": "error",
|
|
|
|
"no-bitwise": "off",
|
|
|
|
"no-caller": "error",
|
|
|
|
"no-console": "off",
|
2018-09-04 11:39:27 +02:00
|
|
|
"no-catch-shadow": "off",
|
2017-01-26 15:49:02 +01:00
|
|
|
"no-cond-assign": [
|
|
|
|
"error",
|
|
|
|
"except-parens"
|
|
|
|
],
|
2019-02-13 19:31:05 +01:00
|
|
|
"no-confusing-arrow": "off",
|
2017-01-26 15:49:02 +01:00
|
|
|
"no-continue": "off",
|
|
|
|
"no-div-regex": "error",
|
|
|
|
"no-duplicate-imports": "error",
|
|
|
|
"no-else-return": "off",
|
|
|
|
"no-empty-function": "off",
|
|
|
|
"no-eq-null": "error",
|
|
|
|
"no-eval": "error",
|
|
|
|
"no-extend-native": "off",
|
|
|
|
"no-extra-bind": "off",
|
|
|
|
"no-extra-label": "error",
|
|
|
|
"no-extra-parens": "off",
|
|
|
|
"no-floating-decimal": "error",
|
|
|
|
"no-implicit-globals": "off",
|
|
|
|
"no-implied-eval": "error",
|
|
|
|
"no-inline-comments": "off",
|
|
|
|
"no-inner-declarations": [
|
|
|
|
"error",
|
|
|
|
"functions"
|
|
|
|
],
|
|
|
|
"no-invalid-this": "off",
|
|
|
|
"no-iterator": "error",
|
|
|
|
"no-label-var": "error",
|
|
|
|
"no-labels": "error",
|
|
|
|
"no-lone-blocks": "error",
|
|
|
|
"no-lonely-if": "off",
|
|
|
|
"no-loop-func": "error",
|
|
|
|
"no-magic-numbers": "off",
|
|
|
|
"no-mixed-operators": "off",
|
|
|
|
"no-mixed-requires": "error",
|
|
|
|
"no-multi-assign": "off",
|
|
|
|
"no-multi-spaces": "off",
|
|
|
|
"no-multi-str": "error",
|
|
|
|
"no-multiple-empty-lines": "error",
|
|
|
|
"no-native-reassign": "error",
|
|
|
|
"no-negated-condition": "off",
|
|
|
|
"no-negated-in-lhs": "error",
|
|
|
|
"no-nested-ternary": "off",
|
2018-03-26 15:38:03 +02:00
|
|
|
"no-new": "off",
|
2017-01-26 15:49:02 +01:00
|
|
|
"no-new-func": "error",
|
|
|
|
"no-new-object": "error",
|
|
|
|
"no-new-require": "error",
|
|
|
|
"no-new-wrappers": "error",
|
|
|
|
"no-octal-escape": "error",
|
|
|
|
"no-param-reassign": "off",
|
|
|
|
"no-path-concat": "error",
|
|
|
|
"no-plusplus": "off",
|
|
|
|
"no-process-env": "error",
|
|
|
|
"no-process-exit": "error",
|
|
|
|
"no-proto": "error",
|
|
|
|
"no-prototype-builtins": "error",
|
|
|
|
"no-restricted-globals": "error",
|
|
|
|
"no-restricted-imports": "error",
|
|
|
|
"no-restricted-modules": "error",
|
|
|
|
"no-restricted-properties": "error",
|
|
|
|
"no-restricted-syntax": "error",
|
|
|
|
"no-return-assign": "error",
|
|
|
|
"no-return-await": "error",
|
|
|
|
"no-script-url": "error",
|
|
|
|
"no-self-compare": "error",
|
|
|
|
"no-sequences": "error",
|
|
|
|
"no-shadow": "off",
|
|
|
|
"no-shadow-restricted-names": "error",
|
|
|
|
"no-sync": "error",
|
|
|
|
"no-tabs": "error",
|
|
|
|
"no-template-curly-in-string": "error",
|
|
|
|
"no-ternary": "off",
|
|
|
|
"no-throw-literal": "error",
|
|
|
|
"no-trailing-spaces": "off",
|
|
|
|
"no-undef-init": "error",
|
|
|
|
"no-undefined": "off",
|
|
|
|
"no-underscore-dangle": "off",
|
|
|
|
"no-unmodified-loop-condition": "error",
|
|
|
|
"no-unneeded-ternary": "off",
|
2019-10-08 16:28:34 +02:00
|
|
|
"no-unused-vars": "error",
|
2017-01-26 15:49:02 +01:00
|
|
|
"no-unused-expressions": "off",
|
|
|
|
"no-use-before-define": "off",
|
|
|
|
"no-useless-call": "error",
|
|
|
|
"no-useless-computed-key": "error",
|
2017-08-23 11:57:17 +02:00
|
|
|
"no-useless-concat": "off",
|
2017-01-26 15:49:02 +01:00
|
|
|
"no-useless-constructor": "error",
|
|
|
|
"no-useless-escape": "off",
|
|
|
|
"no-useless-rename": "error",
|
|
|
|
"no-useless-return": "off",
|
|
|
|
"no-var": "off",
|
|
|
|
"no-void": "error",
|
|
|
|
"no-warning-comments": "off",
|
|
|
|
"no-whitespace-before-property": "error",
|
|
|
|
"no-with": "error",
|
|
|
|
"object-curly-newline": "off",
|
|
|
|
"object-curly-spacing": "off",
|
|
|
|
"object-property-newline": [
|
2019-12-06 13:09:09 +01:00
|
|
|
"off",
|
2017-01-26 15:49:02 +01:00
|
|
|
{
|
|
|
|
"allowMultiplePropertiesPerLine": true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"object-shorthand": "off",
|
|
|
|
"one-var": "off",
|
|
|
|
"one-var-declaration-per-line": "off",
|
|
|
|
"operator-assignment": "off",
|
2018-08-10 14:09:21 +02:00
|
|
|
"operator-linebreak": "off",
|
2017-01-26 15:49:02 +01:00
|
|
|
"padded-blocks": "off",
|
|
|
|
"prefer-arrow-callback": "off",
|
|
|
|
"prefer-const": "error",
|
|
|
|
"prefer-destructuring": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"array": false,
|
|
|
|
"object": false
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"prefer-numeric-literals": "error",
|
2019-07-01 10:44:59 +02:00
|
|
|
"prefer-promise-reject-errors": "off",
|
2017-01-26 15:49:02 +01:00
|
|
|
"prefer-reflect": "off",
|
|
|
|
"prefer-rest-params": "off",
|
|
|
|
"prefer-spread": "off",
|
|
|
|
"prefer-template": "off",
|
|
|
|
"quote-props": "off",
|
|
|
|
"quotes": "off",
|
|
|
|
"radix": [
|
|
|
|
"error",
|
|
|
|
"always"
|
|
|
|
],
|
2019-07-11 10:48:52 +02:00
|
|
|
"require-atomic-updates": "off",
|
2017-01-26 15:49:02 +01:00
|
|
|
"require-await": "error",
|
|
|
|
"require-jsdoc": "off",
|
|
|
|
"rest-spread-spacing": "error",
|
|
|
|
"semi": "off",
|
|
|
|
"semi-spacing": "off",
|
2019-09-19 16:54:55 +02:00
|
|
|
"sort-imports": "off",
|
2017-01-26 15:49:02 +01:00
|
|
|
"sort-keys": "off",
|
|
|
|
"sort-vars": "off",
|
|
|
|
"space-before-blocks": "off",
|
|
|
|
"space-before-function-paren": "off",
|
|
|
|
"space-in-parens": "off",
|
|
|
|
"space-infix-ops": "off",
|
|
|
|
"space-unary-ops": "off",
|
|
|
|
"spaced-comment": "off",
|
|
|
|
"strict": "off",
|
|
|
|
"symbol-description": "error",
|
2020-01-23 10:18:41 +01:00
|
|
|
"template-curly-spacing": "off",
|
2017-01-26 15:49:02 +01:00
|
|
|
"unicode-bom": [
|
|
|
|
"error",
|
|
|
|
"never"
|
|
|
|
],
|
2017-04-05 11:01:31 +02:00
|
|
|
"valid-jsdoc": "off",
|
2017-01-26 15:49:02 +01:00
|
|
|
"vars-on-top": "off",
|
|
|
|
"wrap-iife": [
|
|
|
|
"error",
|
|
|
|
"any"
|
|
|
|
],
|
|
|
|
"wrap-regex": "error",
|
|
|
|
"yield-star-spacing": "error",
|
|
|
|
"yoda": "off"
|
|
|
|
}
|
|
|
|
}
|