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