|
| 1 | +{ |
| 2 | + "parser": "babel-eslint", |
| 3 | + |
| 4 | + "plugins": [ |
| 5 | + "babel", |
| 6 | + "flowtype", |
| 7 | + "prettier" |
| 8 | + ], |
| 9 | + |
| 10 | + "env": { |
| 11 | + "es6": true, |
| 12 | + "node": true, |
| 13 | + "mocha": true |
| 14 | + }, |
| 15 | + |
| 16 | + "parserOptions": { |
| 17 | + "arrowFunctions": true, |
| 18 | + "binaryLiterals": true, |
| 19 | + "blockBindings": true, |
| 20 | + "classes": true, |
| 21 | + "defaultParams": true, |
| 22 | + "destructuring": true, |
| 23 | + "experimentalObjectRestSpread": true, |
| 24 | + "forOf": true, |
| 25 | + "generators": true, |
| 26 | + "globalReturn": true, |
| 27 | + "jsx": true, |
| 28 | + "modules": true, |
| 29 | + "objectLiteralComputedProperties": true, |
| 30 | + "objectLiteralDuplicateProperties": true, |
| 31 | + "objectLiteralShorthandMethods": true, |
| 32 | + "objectLiteralShorthandProperties": true, |
| 33 | + "octalLiterals": true, |
| 34 | + "regexUFlag": true, |
| 35 | + "regexYFlag": true, |
| 36 | + "restParams": true, |
| 37 | + "spread": true, |
| 38 | + "superInFunctions": true, |
| 39 | + "templateStrings": true, |
| 40 | + "unicodeCodePointEscapes": true |
| 41 | + }, |
| 42 | + |
| 43 | + "rules": { |
| 44 | + "prettier/prettier": ["error", {"singleQuote": true, "parser": "flow"}], |
| 45 | + "flowtype/space-after-type-colon": [2, "always"], |
| 46 | + "flowtype/space-before-type-colon": [2, "never"], |
| 47 | + "flowtype/space-before-generic-bracket": [2, "never"], |
| 48 | + "flowtype/union-intersection-spacing": [2, "always"], |
| 49 | + "flowtype/no-weak-types": [2, {"any": false}], |
| 50 | + "flowtype/define-flow-type": 2, |
| 51 | + "flowtype/use-flow-type": 2, |
| 52 | + "flowtype/semi": 2, |
| 53 | + "arrow-parens": [2, "as-needed"], |
| 54 | + "arrow-spacing": 2, |
| 55 | + "block-scoped-var": 0, |
| 56 | + "brace-style": [2, "1tbs", {"allowSingleLine": true}], |
| 57 | + "callback-return": 2, |
| 58 | + "comma-dangle": 0, |
| 59 | + "comma-spacing": 0, |
| 60 | + "comma-style": [2, "last"], |
| 61 | + "complexity": 0, |
| 62 | + "computed-property-spacing": [2, "never"], |
| 63 | + "consistent-return": 0, |
| 64 | + "consistent-this": 0, |
| 65 | + "curly": [2, "all"], |
| 66 | + "default-case": 0, |
| 67 | + "dot-location": [2, "property"], |
| 68 | + "dot-notation": 0, |
| 69 | + "eol-last": 2, |
| 70 | + "eqeqeq": ["error", "smart"], |
| 71 | + "func-names": 0, |
| 72 | + "func-style": 0, |
| 73 | + "generator-star-spacing": [2, {"before": false, "after": true}], |
| 74 | + "guard-for-in": 2, |
| 75 | + "handle-callback-err": [2, "error"], |
| 76 | + "id-length": 0, |
| 77 | + "id-match": [2, "^(?:_?[a-zA-Z0-9]*)|[_A-Z0-9]+$"], |
| 78 | + "indent": 0, |
| 79 | + "init-declarations": 0, |
| 80 | + "key-spacing": [2, {"beforeColon": false, "afterColon": true}], |
| 81 | + "keyword-spacing": 2, |
| 82 | + "linebreak-style": 2, |
| 83 | + "lines-around-comment": 0, |
| 84 | + "max-depth": 0, |
| 85 | + "max-len": [2, 80, 4], |
| 86 | + "max-nested-callbacks": 0, |
| 87 | + "max-params": 0, |
| 88 | + "max-statements": 0, |
| 89 | + "new-cap": 0, |
| 90 | + "new-parens": 2, |
| 91 | + "newline-after-var": 0, |
| 92 | + "no-alert": 2, |
| 93 | + "no-array-constructor": 2, |
| 94 | + "no-await-in-loop": 2, |
| 95 | + "no-bitwise": 0, |
| 96 | + "no-caller": 2, |
| 97 | + "no-catch-shadow": 0, |
| 98 | + "no-class-assign": 2, |
| 99 | + "no-cond-assign": 2, |
| 100 | + "no-console": 1, |
| 101 | + "no-const-assign": 2, |
| 102 | + "no-constant-condition": 2, |
| 103 | + "no-continue": 0, |
| 104 | + "no-control-regex": 0, |
| 105 | + "no-debugger": 1, |
| 106 | + "no-delete-var": 2, |
| 107 | + "no-div-regex": 2, |
| 108 | + "no-dupe-args": 2, |
| 109 | + "no-dupe-keys": 2, |
| 110 | + "no-duplicate-case": 2, |
| 111 | + "no-else-return": 2, |
| 112 | + "no-empty": 2, |
| 113 | + "no-empty-character-class": 2, |
| 114 | + "no-eq-null": 0, |
| 115 | + "no-eval": 2, |
| 116 | + "no-ex-assign": 2, |
| 117 | + "no-extend-native": 2, |
| 118 | + "no-extra-bind": 2, |
| 119 | + "no-extra-boolean-cast": 2, |
| 120 | + "no-extra-parens": 0, |
| 121 | + "no-extra-semi": 2, |
| 122 | + "no-fallthrough": 2, |
| 123 | + "no-floating-decimal": 2, |
| 124 | + "no-func-assign": 2, |
| 125 | + "no-implicit-coercion": 2, |
| 126 | + "no-implied-eval": 2, |
| 127 | + "no-inline-comments": 0, |
| 128 | + "no-inner-declarations": [2, "functions"], |
| 129 | + "no-invalid-regexp": 2, |
| 130 | + "no-invalid-this": 0, |
| 131 | + "no-irregular-whitespace": 2, |
| 132 | + "no-iterator": 2, |
| 133 | + "no-label-var": 2, |
| 134 | + "no-labels": [2, {"allowLoop": true}], |
| 135 | + "no-lone-blocks": 2, |
| 136 | + "no-lonely-if": 2, |
| 137 | + "no-loop-func": 0, |
| 138 | + "no-mixed-requires": [2, true], |
| 139 | + "no-mixed-spaces-and-tabs": 2, |
| 140 | + "no-multi-spaces": 2, |
| 141 | + "no-multi-str": 2, |
| 142 | + "no-multiple-empty-lines": 0, |
| 143 | + "no-native-reassign": 0, |
| 144 | + "no-negated-in-lhs": 2, |
| 145 | + "no-nested-ternary": 0, |
| 146 | + "no-new": 2, |
| 147 | + "no-new-func": 0, |
| 148 | + "no-new-object": 2, |
| 149 | + "no-new-require": 2, |
| 150 | + "no-new-wrappers": 2, |
| 151 | + "no-obj-calls": 2, |
| 152 | + "no-octal": 2, |
| 153 | + "no-octal-escape": 2, |
| 154 | + "no-param-reassign": 2, |
| 155 | + "no-path-concat": 2, |
| 156 | + "no-plusplus": 0, |
| 157 | + "no-process-env": 0, |
| 158 | + "no-process-exit": 0, |
| 159 | + "no-proto": 2, |
| 160 | + "no-redeclare": 2, |
| 161 | + "no-regex-spaces": 2, |
| 162 | + "no-restricted-modules": 0, |
| 163 | + "no-return-assign": 2, |
| 164 | + "no-script-url": 2, |
| 165 | + "no-self-compare": 0, |
| 166 | + "no-sequences": 0, |
| 167 | + "no-shadow": 2, |
| 168 | + "no-shadow-restricted-names": 2, |
| 169 | + "no-spaced-func": 2, |
| 170 | + "no-sparse-arrays": 2, |
| 171 | + "no-ternary": 0, |
| 172 | + "no-this-before-super": 2, |
| 173 | + "no-throw-literal": 2, |
| 174 | + "no-trailing-spaces": 2, |
| 175 | + "no-undef": 2, |
| 176 | + "no-undef-init": 2, |
| 177 | + "no-undefined": 0, |
| 178 | + "no-underscore-dangle": 0, |
| 179 | + "no-unexpected-multiline": 2, |
| 180 | + "no-unneeded-ternary": 2, |
| 181 | + "no-unreachable": 2, |
| 182 | + "no-unused-expressions": 2, |
| 183 | + "no-unused-vars": [2, {"vars": "all", "args": "after-used"}], |
| 184 | + "no-use-before-define": 0, |
| 185 | + "no-useless-call": 2, |
| 186 | + "no-useless-escape": 2, |
| 187 | + "no-useless-return": 2, |
| 188 | + "no-var": 2, |
| 189 | + "no-void": 2, |
| 190 | + "no-warning-comments": 0, |
| 191 | + "no-with": 2, |
| 192 | + "object-curly-spacing": [0, "always"], |
| 193 | + "object-shorthand": [2, "always"], |
| 194 | + "one-var": [2, "never"], |
| 195 | + "operator-assignment": [2, "always"], |
| 196 | + "padded-blocks": 0, |
| 197 | + "prefer-const": 2, |
| 198 | + "prefer-reflect": 0, |
| 199 | + "prefer-spread": 0, |
| 200 | + "quote-props": [2, "as-needed", {"numbers": true}], |
| 201 | + "radix": 2, |
| 202 | + "require-yield": 0, |
| 203 | + "semi": [2, "always"], |
| 204 | + "semi-spacing": [2, {"before": false, "after": true}], |
| 205 | + "sort-vars": 0, |
| 206 | + "space-before-blocks": [2, "always"], |
| 207 | + "space-in-parens": 0, |
| 208 | + "space-infix-ops": [2, {"int32Hint": false}], |
| 209 | + "space-unary-ops": [2, {"words": true, "nonwords": false}], |
| 210 | + "spaced-comment": [2, "always"], |
| 211 | + "strict": 0, |
| 212 | + "use-isnan": 2, |
| 213 | + "valid-jsdoc": 0, |
| 214 | + "valid-typeof": 2, |
| 215 | + "vars-on-top": 0, |
| 216 | + "wrap-iife": 2, |
| 217 | + "wrap-regex": 0, |
| 218 | + "yoda": [2, "never", {"exceptRange": true}] |
| 219 | + } |
| 220 | +} |
0 commit comments