|
| 1 | +--- |
| 2 | +parserOptions: |
| 3 | + sourceType: module |
| 4 | + ecmaFeatures: |
| 5 | + jsx: true |
| 6 | + |
| 7 | +env: |
| 8 | + amd: true |
| 9 | + browser: true |
| 10 | + es6: true |
| 11 | + jquery: true |
| 12 | + node: true |
| 13 | + |
| 14 | +# http://eslint.org/docs/rules/ |
| 15 | +rules: |
| 16 | + # Possible Errors |
| 17 | + no-await-in-loop: off |
| 18 | + no-cond-assign: error |
| 19 | + no-console: off |
| 20 | + no-constant-condition: error |
| 21 | + no-control-regex: error |
| 22 | + no-debugger: error |
| 23 | + no-dupe-args: error |
| 24 | + no-dupe-keys: error |
| 25 | + no-duplicate-case: error |
| 26 | + no-empty-character-class: error |
| 27 | + no-empty: error |
| 28 | + no-ex-assign: error |
| 29 | + no-extra-boolean-cast: error |
| 30 | + no-extra-parens: off |
| 31 | + no-extra-semi: error |
| 32 | + no-func-assign: error |
| 33 | + no-inner-declarations: |
| 34 | + - error |
| 35 | + - functions |
| 36 | + no-invalid-regexp: error |
| 37 | + no-irregular-whitespace: error |
| 38 | + no-negated-in-lhs: error |
| 39 | + no-obj-calls: error |
| 40 | + no-prototype-builtins: off |
| 41 | + no-regex-spaces: error |
| 42 | + no-sparse-arrays: error |
| 43 | + no-template-curly-in-string: off |
| 44 | + no-unexpected-multiline: error |
| 45 | + no-unreachable: error |
| 46 | + no-unsafe-finally: off |
| 47 | + no-unsafe-negation: off |
| 48 | + use-isnan: error |
| 49 | + valid-jsdoc: off |
| 50 | + valid-typeof: error |
| 51 | + |
| 52 | + # Best Practices |
| 53 | + accessor-pairs: error |
| 54 | + array-callback-return: off |
| 55 | + block-scoped-var: off |
| 56 | + class-methods-use-this: off |
| 57 | + complexity: |
| 58 | + - error |
| 59 | + - 6 |
| 60 | + consistent-return: off |
| 61 | + curly: off |
| 62 | + default-case: off |
| 63 | + dot-location: off |
| 64 | + dot-notation: off |
| 65 | + eqeqeq: error |
| 66 | + guard-for-in: error |
| 67 | + no-alert: error |
| 68 | + no-caller: error |
| 69 | + no-case-declarations: error |
| 70 | + no-div-regex: error |
| 71 | + no-else-return: off |
| 72 | + no-empty-function: off |
| 73 | + no-empty-pattern: error |
| 74 | + no-eq-null: error |
| 75 | + no-eval: error |
| 76 | + no-extend-native: error |
| 77 | + no-extra-bind: error |
| 78 | + no-extra-label: off |
| 79 | + no-fallthrough: error |
| 80 | + no-floating-decimal: off |
| 81 | + no-global-assign: off |
| 82 | + no-implicit-coercion: off |
| 83 | + no-implied-eval: error |
| 84 | + no-invalid-this: off |
| 85 | + no-iterator: error |
| 86 | + no-labels: |
| 87 | + - error |
| 88 | + - allowLoop: true |
| 89 | + allowSwitch: true |
| 90 | + no-lone-blocks: error |
| 91 | + no-loop-func: error |
| 92 | + no-magic-number: off |
| 93 | + no-multi-spaces: off |
| 94 | + no-multi-str: off |
| 95 | + no-native-reassign: error |
| 96 | + no-new-func: error |
| 97 | + no-new-wrappers: error |
| 98 | + no-new: error |
| 99 | + no-octal-escape: error |
| 100 | + no-octal: error |
| 101 | + no-param-reassign: off |
| 102 | + no-proto: error |
| 103 | + no-redeclare: error |
| 104 | + no-restricted-properties: off |
| 105 | + no-return-assign: error |
| 106 | + no-return-await: off |
| 107 | + no-script-url: error |
| 108 | + no-self-assign: off |
| 109 | + no-self-compare: error |
| 110 | + no-sequences: off |
| 111 | + no-throw-literal: off |
| 112 | + no-unmodified-loop-condition: off |
| 113 | + no-unused-expressions: error |
| 114 | + no-unused-labels: off |
| 115 | + no-useless-call: error |
| 116 | + no-useless-concat: error |
| 117 | + no-useless-escape: off |
| 118 | + no-useless-return: off |
| 119 | + no-void: error |
| 120 | + no-warning-comments: off |
| 121 | + no-with: error |
| 122 | + prefer-promise-reject-errors: off |
| 123 | + radix: error |
| 124 | + require-await: off |
| 125 | + vars-on-top: off |
| 126 | + wrap-iife: error |
| 127 | + yoda: off |
| 128 | + |
| 129 | + # Strict |
| 130 | + strict: off |
| 131 | + |
| 132 | + # Variables |
| 133 | + init-declarations: off |
| 134 | + no-catch-shadow: error |
| 135 | + no-delete-var: error |
| 136 | + no-label-var: error |
| 137 | + no-restricted-globals: off |
| 138 | + no-shadow-restricted-names: error |
| 139 | + no-shadow: off |
| 140 | + no-undef-init: error |
| 141 | + no-undef: off |
| 142 | + no-undefined: off |
| 143 | + no-unused-vars: off |
| 144 | + no-use-before-define: off |
| 145 | + |
| 146 | + # Node.js and CommonJS |
| 147 | + callback-return: error |
| 148 | + global-require: error |
| 149 | + handle-callback-err: error |
| 150 | + no-mixed-requires: off |
| 151 | + no-new-require: off |
| 152 | + no-path-concat: error |
| 153 | + no-process-env: off |
| 154 | + no-process-exit: error |
| 155 | + no-restricted-modules: off |
| 156 | + no-sync: off |
| 157 | + |
| 158 | + # Stylistic Issues |
| 159 | + array-bracket-spacing: off |
| 160 | + block-spacing: off |
| 161 | + brace-style: off |
| 162 | + camelcase: off |
| 163 | + capitalized-comments: off |
| 164 | + comma-dangle: |
| 165 | + - error |
| 166 | + - never |
| 167 | + comma-spacing: off |
| 168 | + comma-style: off |
| 169 | + computed-property-spacing: off |
| 170 | + consistent-this: off |
| 171 | + eol-last: off |
| 172 | + func-call-spacing: off |
| 173 | + func-name-matching: off |
| 174 | + func-names: off |
| 175 | + func-style: off |
| 176 | + id-length: off |
| 177 | + id-match: off |
| 178 | + indent: off |
| 179 | + jsx-quotes: off |
| 180 | + key-spacing: off |
| 181 | + keyword-spacing: off |
| 182 | + line-comment-position: off |
| 183 | + linebreak-style: off |
| 184 | + lines-around-comment: off |
| 185 | + lines-around-directive: off |
| 186 | + max-depth: off |
| 187 | + max-len: off |
| 188 | + max-nested-callbacks: off |
| 189 | + max-params: off |
| 190 | + max-statements-per-line: off |
| 191 | + max-statements: |
| 192 | + - error |
| 193 | + - 30 |
| 194 | + multiline-ternary: off |
| 195 | + new-cap: off |
| 196 | + new-parens: off |
| 197 | + newline-after-var: off |
| 198 | + newline-before-return: off |
| 199 | + newline-per-chained-call: off |
| 200 | + no-array-constructor: off |
| 201 | + no-bitwise: off |
| 202 | + no-continue: off |
| 203 | + no-inline-comments: off |
| 204 | + no-lonely-if: off |
| 205 | + no-mixed-operators: off |
| 206 | + no-mixed-spaces-and-tabs: off |
| 207 | + no-multi-assign: off |
| 208 | + no-multiple-empty-lines: off |
| 209 | + no-negated-condition: off |
| 210 | + no-nested-ternary: off |
| 211 | + no-new-object: off |
| 212 | + no-plusplus: off |
| 213 | + no-restricted-syntax: off |
| 214 | + no-spaced-func: off |
| 215 | + no-tabs: off |
| 216 | + no-ternary: off |
| 217 | + no-trailing-spaces: off |
| 218 | + no-underscore-dangle: off |
| 219 | + no-unneeded-ternary: off |
| 220 | + object-curly-newline: off |
| 221 | + object-curly-spacing: off |
| 222 | + object-property-newline: off |
| 223 | + one-var-declaration-per-line: off |
| 224 | + one-var: off |
| 225 | + operator-assignment: off |
| 226 | + operator-linebreak: off |
| 227 | + padded-blocks: off |
| 228 | + quote-props: off |
| 229 | + quotes: off |
| 230 | + require-jsdoc: off |
| 231 | + semi-spacing: off |
| 232 | + semi: off |
| 233 | + sort-keys: off |
| 234 | + sort-vars: off |
| 235 | + space-before-blocks: off |
| 236 | + space-before-function-paren: off |
| 237 | + space-in-parens: off |
| 238 | + space-infix-ops: off |
| 239 | + space-unary-ops: off |
| 240 | + spaced-comment: off |
| 241 | + template-tag-spacing: off |
| 242 | + unicode-bom: off |
| 243 | + wrap-regex: off |
| 244 | + |
| 245 | + # ECMAScript 6 |
| 246 | + arrow-body-style: off |
| 247 | + arrow-parens: off |
| 248 | + arrow-spacing: off |
| 249 | + constructor-super: off |
| 250 | + generator-star-spacing: off |
| 251 | + no-class-assign: off |
| 252 | + no-confusing-arrow: off |
| 253 | + no-const-assign: off |
| 254 | + no-dupe-class-members: off |
| 255 | + no-duplicate-imports: off |
| 256 | + no-new-symbol: off |
| 257 | + no-restricted-imports: off |
| 258 | + no-this-before-super: off |
| 259 | + no-useless-computed-key: off |
| 260 | + no-useless-constructor: off |
| 261 | + no-useless-rename: off |
| 262 | + no-var: off |
| 263 | + object-shorthand: off |
| 264 | + prefer-arrow-callback: off |
| 265 | + prefer-const: off |
| 266 | + prefer-destructuring: off |
| 267 | + prefer-numeric-literals: off |
| 268 | + prefer-rest-params: off |
| 269 | + prefer-reflect: off |
| 270 | + prefer-spread: off |
| 271 | + prefer-template: off |
| 272 | + require-yield: off |
| 273 | + rest-spread-spacing: off |
| 274 | + sort-imports: off |
| 275 | + symbol-description: off |
| 276 | + template-curly-spacing: off |
| 277 | + yield-star-spacing: off |
0 commit comments