|
| 1 | +{ |
| 2 | + "env": { |
| 3 | + "browser": true, |
| 4 | + "node": true |
| 5 | + }, |
| 6 | + |
| 7 | + "globals": { |
| 8 | + "jQuery": true |
| 9 | + }, |
| 10 | + |
| 11 | + "ecmaFeatures": { |
| 12 | + "arrowFunctions": true, |
| 13 | + "destructuring": true, |
| 14 | + "classes": true, |
| 15 | + "defaultParams": true, |
| 16 | + "blockBindings": true, |
| 17 | + "modules": true, |
| 18 | + "objectLiteralComputedProperties": true, |
| 19 | + "objectLiteralShorthandMethods": true, |
| 20 | + "objectLiteralShorthandProperties": true, |
| 21 | + "restParams": true, |
| 22 | + "spread": true, |
| 23 | + "templateStrings": true |
| 24 | + }, |
| 25 | + |
| 26 | + "rules": { |
| 27 | + "accessor-pairs": 2, |
| 28 | + "array-bracket-spacing": 0, |
| 29 | + "block-scoped-var": 0, |
| 30 | + "brace-style": [2, "1tbs", { "allowSingleLine": true }], |
| 31 | + "camelcase": 0, |
| 32 | + "comma-dangle": [2, "never"], |
| 33 | + "comma-spacing": [2, { "before": false, "after": true }], |
| 34 | + "comma-style": [2, "last"], |
| 35 | + "complexity": 0, |
| 36 | + "computed-property-spacing": 0, |
| 37 | + "consistent-return": 0, |
| 38 | + "consistent-this": 0, |
| 39 | + "constructor-super": 2, |
| 40 | + "curly": [2, "multi-line"], |
| 41 | + "default-case": 0, |
| 42 | + "dot-location": [2, "property"], |
| 43 | + "dot-notation": 0, |
| 44 | + "eol-last": 2, |
| 45 | + "eqeqeq": [2, "allow-null"], |
| 46 | + "func-names": 0, |
| 47 | + "func-style": 0, |
| 48 | + "generator-star-spacing": [2, { "before": true, "after": true }], |
| 49 | + "guard-for-in": 0, |
| 50 | + "handle-callback-err": [2, "^(err|error)$" ], |
| 51 | + "indent": [2, 2, { "SwitchCase": 1 }], |
| 52 | + "key-spacing": [2, { "beforeColon": false, "afterColon": true }], |
| 53 | + "linebreak-style": 0, |
| 54 | + "lines-around-comment": 0, |
| 55 | + "max-nested-callbacks": 0, |
| 56 | + "new-cap": [2, { "newIsCap": true, "capIsNew": false }], |
| 57 | + "new-parens": 2, |
| 58 | + "newline-after-var": 0, |
| 59 | + "no-alert": 0, |
| 60 | + "no-array-constructor": 2, |
| 61 | + "no-caller": 2, |
| 62 | + "no-catch-shadow": 0, |
| 63 | + "no-cond-assign": 2, |
| 64 | + "no-console": 0, |
| 65 | + "no-constant-condition": 0, |
| 66 | + "no-continue": 0, |
| 67 | + "no-control-regex": 2, |
| 68 | + "no-debugger": 2, |
| 69 | + "no-delete-var": 2, |
| 70 | + "no-div-regex": 0, |
| 71 | + "no-dupe-args": 2, |
| 72 | + "no-dupe-keys": 2, |
| 73 | + "no-duplicate-case": 2, |
| 74 | + "no-else-return": 0, |
| 75 | + "no-empty": 0, |
| 76 | + "no-empty-character-class": 2, |
| 77 | + "no-empty-label": 2, |
| 78 | + "no-eq-null": 0, |
| 79 | + "no-eval": 2, |
| 80 | + "no-ex-assign": 2, |
| 81 | + "no-extend-native": 2, |
| 82 | + "no-extra-bind": 2, |
| 83 | + "no-extra-boolean-cast": 2, |
| 84 | + "no-extra-parens": 0, |
| 85 | + "no-extra-semi": 0, |
| 86 | + "no-fallthrough": 2, |
| 87 | + "no-floating-decimal": 2, |
| 88 | + "no-func-assign": 2, |
| 89 | + "no-implied-eval": 2, |
| 90 | + "no-inline-comments": 0, |
| 91 | + "no-inner-declarations": [2, "functions"], |
| 92 | + "no-invalid-regexp": 2, |
| 93 | + "no-irregular-whitespace": 2, |
| 94 | + "no-iterator": 2, |
| 95 | + "no-label-var": 2, |
| 96 | + "no-labels": 2, |
| 97 | + "no-lone-blocks": 2, |
| 98 | + "no-lonely-if": 0, |
| 99 | + "no-loop-func": 0, |
| 100 | + "no-mixed-requires": 0, |
| 101 | + "no-mixed-spaces-and-tabs": 2, |
| 102 | + "no-multi-spaces": 2, |
| 103 | + "no-multi-str": 2, |
| 104 | + "no-multiple-empty-lines": [2, { "max": 1 }], |
| 105 | + "no-native-reassign": 2, |
| 106 | + "no-negated-in-lhs": 2, |
| 107 | + "no-nested-ternary": 0, |
| 108 | + "no-new": 2, |
| 109 | + "no-new-func": 0, |
| 110 | + "no-new-object": 2, |
| 111 | + "no-new-require": 2, |
| 112 | + "no-new-wrappers": 2, |
| 113 | + "no-obj-calls": 2, |
| 114 | + "no-octal": 2, |
| 115 | + "no-octal-escape": 2, |
| 116 | + "no-param-reassign": 0, |
| 117 | + "no-path-concat": 0, |
| 118 | + "no-process-env": 0, |
| 119 | + "no-process-exit": 0, |
| 120 | + "no-proto": 0, |
| 121 | + "no-redeclare": 2, |
| 122 | + "no-regex-spaces": 2, |
| 123 | + "no-restricted-modules": 0, |
| 124 | + "no-return-assign": 2, |
| 125 | + "no-script-url": 0, |
| 126 | + "no-self-compare": 2, |
| 127 | + "no-sequences": 2, |
| 128 | + "no-shadow": 0, |
| 129 | + "no-shadow-restricted-names": 2, |
| 130 | + "no-spaced-func": 2, |
| 131 | + "no-sparse-arrays": 2, |
| 132 | + "no-sync": 0, |
| 133 | + "no-ternary": 0, |
| 134 | + "no-this-before-super": 2, |
| 135 | + "no-throw-literal": 2, |
| 136 | + "no-trailing-spaces": 2, |
| 137 | + "no-undef": 2, |
| 138 | + "no-undef-init": 2, |
| 139 | + "no-undefined": 0, |
| 140 | + "no-underscore-dangle": 0, |
| 141 | + "no-unexpected-multiline": 2, |
| 142 | + "no-unneeded-ternary": 2, |
| 143 | + "no-unreachable": 2, |
| 144 | + "no-unused-expressions": 0, |
| 145 | + "no-unused-vars": [2, { "vars": "all", "args": "none" }], |
| 146 | + "no-use-before-define": 0, |
| 147 | + "no-var": 0, |
| 148 | + "no-void": 0, |
| 149 | + "no-warning-comments": 0, |
| 150 | + "no-with": 2, |
| 151 | + "object-curly-spacing": 0, |
| 152 | + "object-shorthand": 0, |
| 153 | + "one-var": [2, { "initialized": "never" }], |
| 154 | + "operator-assignment": 0, |
| 155 | + "operator-linebreak": [2, "after", { "overrides": { "?": "before", ":": "before" } }], |
| 156 | + "padded-blocks": 0, |
| 157 | + "prefer-const": 0, |
| 158 | + "quote-props": 0, |
| 159 | + "quotes": [2, "single", "avoid-escape"], |
| 160 | + "radix": 2, |
| 161 | + "semi": [2, "always"], |
| 162 | + "semi-spacing": 0, |
| 163 | + "sort-vars": 0, |
| 164 | + "space-after-keywords": [2, "always"], |
| 165 | + "space-before-blocks": [2, "always"], |
| 166 | + "space-before-function-paren": [2, "always"], |
| 167 | + "space-in-parens": [2, "never"], |
| 168 | + "space-infix-ops": 2, |
| 169 | + "space-return-throw-case": 2, |
| 170 | + "space-unary-ops": [2, { "words": true, "nonwords": false }], |
| 171 | + "spaced-comment": [2, "always", { "markers": ["global", "globals", "eslint", "eslint-disable", "*package", "!"] }], |
| 172 | + "strict": 0, |
| 173 | + "use-isnan": 2, |
| 174 | + "valid-jsdoc": 0, |
| 175 | + "valid-typeof": 2, |
| 176 | + "vars-on-top": 0, |
| 177 | + "wrap-iife": [2, "any"], |
| 178 | + "wrap-regex": 0, |
| 179 | + "yoda": [2, "never"] |
| 180 | + } |
| 181 | +} |
0 commit comments