| 1 |
{ |
| 2 |
"env": { |
| 3 |
"browser": true, |
| 4 |
"node": true, |
| 5 |
"es6": true, |
| 6 |
"amd": true |
| 7 |
}, |
| 8 |
"parserOptions": { |
| 9 |
"ecmaVersion": 2020, |
| 10 |
"sourceType": "module" |
| 11 |
}, |
| 12 |
"globals": { |
| 13 |
"describe": "readonly", |
| 14 |
"it": "readonly", |
| 15 |
"beforeEach": "readonly", |
| 16 |
"BigInt": "readonly" |
| 17 |
}, |
| 18 |
"rules": { |
| 19 |
"arrow-parens": [2, "as-needed"], |
| 20 |
"arrow-spacing": [2, {"before": true, "after": true}], |
| 21 |
"block-scoped-var": [0], |
| 22 |
"brace-style": [2, "1tbs", { "allowSingleLine": true }], |
| 23 |
"camelcase": [0], |
| 24 |
"comma-dangle": [2, "never"], |
| 25 |
"comma-spacing": [2], |
| 26 |
"comma-style": [2, "last"], |
| 27 |
"complexity": [0, 11], |
| 28 |
"consistent-return": [2], |
| 29 |
"consistent-this": [0, "that"], |
| 30 |
"curly": [2, "multi-line"], |
| 31 |
"default-case": [2], |
| 32 |
"dot-notation": [2, { "allowKeywords": true }], |
| 33 |
"eol-last": [2], |
| 34 |
"eqeqeq": [2], |
| 35 |
"func-names": [0], |
| 36 |
"func-style": [0, "declaration"], |
| 37 |
"generator-star-spacing": [2, "after"], |
| 38 |
"guard-for-in": [0], |
| 39 |
"handle-callback-err": [0], |
| 40 |
"indent": ["error", "tab", {"VariableDeclarator": {"var": 1, "let": 1, "const": 1}, "SwitchCase": 1}], |
| 41 |
"key-spacing": [2, { "beforeColon": false, "afterColon": true }], |
| 42 |
"quotes": [2, "double", "avoid-escape"], |
| 43 |
"max-depth": [0, 4], |
| 44 |
"max-len": [0, 80, 4], |
| 45 |
"max-nested-callbacks": [0, 2], |
| 46 |
"max-params": [0, 3], |
| 47 |
"max-statements": [0, 10], |
| 48 |
"new-parens": [2], |
| 49 |
"new-cap": [2, { "capIsNewExceptions": ["ToInteger", "ToObject", "ToPrimitive", "ToUint32"] }], |
| 50 |
"newline-after-var": [0], |
| 51 |
"newline-before-return": [2], |
| 52 |
"no-alert": [2], |
| 53 |
"no-array-constructor": [2], |
| 54 |
"no-bitwise": [0], |
| 55 |
"no-caller": [2], |
| 56 |
"no-catch-shadow": [2], |
| 57 |
"no-cond-assign": [2], |
| 58 |
"no-console": [0], |
| 59 |
"no-constant-condition": [1], |
| 60 |
"no-continue": [2], |
| 61 |
"no-control-regex": [2], |
| 62 |
"no-debugger": [2], |
| 63 |
"no-delete-var": [2], |
| 64 |
"no-div-regex": [0], |
| 65 |
"no-dupe-args": [2], |
| 66 |
"no-dupe-keys": [2], |
| 67 |
"no-duplicate-case": [2], |
| 68 |
"no-else-return": [0], |
| 69 |
"no-empty": [2], |
| 70 |
"no-eq-null": [0], |
| 71 |
"no-eval": [2], |
| 72 |
"no-ex-assign": [2], |
| 73 |
"no-extend-native": [1], |
| 74 |
"no-extra-bind": [2], |
| 75 |
"no-extra-boolean-cast": [2], |
| 76 |
"no-extra-semi": [1], |
| 77 |
"no-empty-character-class": [2], |
| 78 |
"no-fallthrough": [2], |
| 79 |
"no-floating-decimal": [2], |
| 80 |
"no-func-assign": [2], |
| 81 |
"no-implied-eval": [2], |
| 82 |
"no-inline-comments": [0], |
| 83 |
"no-inner-declarations": [2, "functions"], |
| 84 |
"no-invalid-regexp": [2], |
| 85 |
"no-irregular-whitespace": [2], |
| 86 |
"no-iterator": [2], |
| 87 |
"no-label-var": [2], |
| 88 |
"no-labels": [2], |
| 89 |
"no-lone-blocks": [2], |
| 90 |
"no-lonely-if": [2], |
| 91 |
"no-loop-func": [2], |
| 92 |
"no-mixed-requires": [0, false], |
| 93 |
"no-mixed-spaces-and-tabs": [2, false], |
| 94 |
"no-multi-spaces": [2], |
| 95 |
"no-multi-str": [2], |
| 96 |
"no-multiple-empty-lines": [2, { "max": 2 }], |
| 97 |
"no-native-reassign": [0], |
| 98 |
"no-negated-in-lhs": [2], |
| 99 |
"no-nested-ternary": [0], |
| 100 |
"no-new": [2], |
| 101 |
"no-new-func": [0], |
| 102 |
"no-new-object": [2], |
| 103 |
"no-new-require": [0], |
| 104 |
"no-new-wrappers": [2], |
| 105 |
"no-obj-calls": [2], |
| 106 |
"no-octal": [2], |
| 107 |
"no-octal-escape": [2], |
| 108 |
"no-param-reassign": [0], |
| 109 |
"no-path-concat": [0], |
| 110 |
"no-plusplus": [0], |
| 111 |
"no-process-env": [0], |
| 112 |
"no-process-exit": [0], |
| 113 |
"no-proto": [2], |
| 114 |
"no-redeclare": [2], |
| 115 |
"no-regex-spaces": [2], |
| 116 |
"no-reserved-keys": [0], |
| 117 |
"no-reno-new-funced-modules": [0], |
| 118 |
"no-return-assign": [2], |
| 119 |
"no-script-url": [2], |
| 120 |
"no-self-compare": [0], |
| 121 |
"no-sequences": [2], |
| 122 |
"no-shadow": [2], |
| 123 |
"no-shadow-restricted-names": [2], |
| 124 |
"no-spaced-func": [2], |
| 125 |
"no-sparse-arrays": [2], |
| 126 |
"no-sync": [0], |
| 127 |
"no-ternary": [0], |
| 128 |
"no-throw-literal": [2], |
| 129 |
"no-trailing-spaces": [2], |
| 130 |
"no-undef": [2], |
| 131 |
"no-undef-init": [2], |
| 132 |
"no-undefined": [0], |
| 133 |
"no-underscore-dangle": [0], |
| 134 |
"no-unreachable": [2], |
| 135 |
"no-unused-expressions": [2], |
| 136 |
"no-unused-vars": [2, { "vars": "all", "args": "after-used" }], |
| 137 |
"no-use-before-define": [2], |
| 138 |
"no-void": [0], |
| 139 |
"no-warning-comments": [0, { "terms": ["todo", "fixme", "xxx"], "location": "start" }], |
| 140 |
"no-with": [2], |
| 141 |
"no-extra-parens": [2], |
| 142 |
"one-var": [0], |
| 143 |
"operator-assignment": [0, "always"], |
| 144 |
"operator-linebreak": [2, "after"], |
| 145 |
"padded-blocks": [0], |
| 146 |
"quote-props": [0], |
| 147 |
"radix": [0], |
| 148 |
"semi": [2], |
| 149 |
"semi-spacing": [2, { "before": false, "after": true }], |
| 150 |
"sort-vars": [0], |
| 151 |
"keyword-spacing": [2], |
| 152 |
"space-before-function-paren": [2, { "anonymous": "always", "named": "always" }], |
| 153 |
"space-before-blocks": [2, "always"], |
| 154 |
"space-in-brackets": [0, "never", { |
| 155 |
"singleValue": true, |
| 156 |
"arraysInArrays": false, |
| 157 |
"arraysInObjects": false, |
| 158 |
"objectsInArrays": true, |
| 159 |
"objectsInObjects": true, |
| 160 |
"propertyName": false |
| 161 |
}], |
| 162 |
"space-in-parens": [2, "never"], |
| 163 |
"space-infix-ops": [2], |
| 164 |
"space-unary-ops": [2, { "words": true, "nonwords": false }], |
| 165 |
"spaced-line-comment": [0, "always"], |
| 166 |
"strict": [0], |
| 167 |
"use-isnan": [2], |
| 168 |
"valid-jsdoc": [0], |
| 169 |
"valid-typeof": [2], |
| 170 |
"vars-on-top": [0], |
| 171 |
"wrap-iife": [2], |
| 172 |
"wrap-regex": [2], |
| 173 |
"yoda": [2, "never", { "exceptRange": true }] |
| 174 |
} |
| 175 |
} |