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