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