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