| 1 |
env: |
| 2 |
node: true |
| 3 |
browser: false |
| 4 |
|
| 5 |
plugins: |
| 6 |
- nodeca |
| 7 |
|
| 8 |
rules: |
| 9 |
block-scoped-var: 2 |
| 10 |
brace-style: [ 2, '1tbs', { allowSingleLine: true } ] |
| 11 |
comma-spacing: 2 |
| 12 |
comma-style: 2 |
| 13 |
consistent-this: [ 2, self ] |
| 14 |
consistent-return: 2 |
| 15 |
curly: 2 |
| 16 |
# default-case: 2 |
| 17 |
dot-notation: 2 |
| 18 |
eol-last: 2 |
| 19 |
eqeqeq: 2 |
| 20 |
guard-for-in: 2 |
| 21 |
handle-callback-err: 2 |
| 22 |
max-depth: [ 1, 6 ] |
| 23 |
max-nested-callbacks: [ 1, 4 ] |
| 24 |
# string can exceed 80 chars, but should not overflow github website :) |
| 25 |
max-len: [ 2, 120, 1000 ] |
| 26 |
new-cap: 2 |
| 27 |
new-parens: 2 |
| 28 |
no-alert: 2 |
| 29 |
no-array-constructor: 2 |
| 30 |
no-bitwise: 2 |
| 31 |
no-caller: 2 |
| 32 |
no-catch-shadow: 2 |
| 33 |
no-comma-dangle: 2 |
| 34 |
no-cond-assign: 2 |
| 35 |
no-console: 1 |
| 36 |
no-constant-condition: 2 |
| 37 |
no-control-regex: 2 |
| 38 |
no-debugger: 2 |
| 39 |
no-delete-var: 2 |
| 40 |
no-dupe-keys: 2 |
| 41 |
no-div-regex: 2 |
| 42 |
no-empty: 2 |
| 43 |
no-empty-class: 2 |
| 44 |
no-empty-label: 2 |
| 45 |
no-else-return: 2 |
| 46 |
no-eq-null: 2 |
| 47 |
no-ex-assign: 2 |
| 48 |
no-extend-native: 2 |
| 49 |
no-extra-bind: 2 |
| 50 |
no-extra-boolean-cast: 2 |
| 51 |
no-extra-semi: 2 |
| 52 |
no-extra-strict: 2 |
| 53 |
no-eval: 2 |
| 54 |
no-floating-decimal: 2 |
| 55 |
no-func-assign: 2 |
| 56 |
no-implied-eval: 2 |
| 57 |
no-inner-declarations: 2 |
| 58 |
no-invalid-regexp: 2 |
| 59 |
no-irregular-whitespace: 2 |
| 60 |
no-label-var: 2 |
| 61 |
no-labels: 2 |
| 62 |
no-lone-blocks: 2 |
| 63 |
no-lonely-if: 2 |
| 64 |
no-loop-func: 2 |
| 65 |
no-mixed-requires: 2 |
| 66 |
no-mixed-spaces-and-tabs: 2 |
| 67 |
no-multi-str: 2 |
| 68 |
no-native-reassign: 2 |
| 69 |
no-negated-in-lhs: 2 |
| 70 |
no-new: 2 |
| 71 |
no-new-func: 2 |
| 72 |
no-new-object: 2 |
| 73 |
no-new-require: 2 |
| 74 |
no-new-wrappers: 2 |
| 75 |
no-obj-calls: 2 |
| 76 |
no-octal: 2 |
| 77 |
no-octal-escape: 2 |
| 78 |
no-path-concat: 2 |
| 79 |
no-redeclare: 2 |
| 80 |
no-regex-spaces: 2 |
| 81 |
no-reserved-keys: 2 |
| 82 |
no-return-assign: 2 |
| 83 |
no-script-url: 2 |
| 84 |
no-sequences: 2 |
| 85 |
no-shadow: 2 |
| 86 |
no-shadow-restricted-names: 2 |
| 87 |
no-space-before-semi: 2 |
| 88 |
no-sparse-arrays: 2 |
| 89 |
no-trailing-spaces: 2 |
| 90 |
no-undef: 2 |
| 91 |
no-undef-init: 2 |
| 92 |
no-undefined: 2 |
| 93 |
no-unreachable: 2 |
| 94 |
no-unused-expressions: 2 |
| 95 |
no-unused-vars: 2 |
| 96 |
no-use-before-define: 2 |
| 97 |
no-with: 2 |
| 98 |
no-wrap-func: 2 |
| 99 |
quotes: [ 2, single, avoid-escape ] |
| 100 |
radix: 2 |
| 101 |
semi: 2 |
| 102 |
space-after-keywords: [ 2, always, , { "checkFunctionKeyword": true } ] |
| 103 |
space-before-blocks: 2 |
| 104 |
space-in-brackets: [ 2, always, { propertyName: false } ] |
| 105 |
space-in-parens: [ 2, never ] |
| 106 |
space-infix-ops: 2 |
| 107 |
space-return-throw-case: 2 |
| 108 |
space-unary-ops: 2 |
| 109 |
spaced-line-comment: [ 2, always, { exceptions: [ '/' ] } ] |
| 110 |
strict: 2 |
| 111 |
use-isnan: 2 |
| 112 |
yoda: 2 |
| 113 |
valid-typeof: 2 |
| 114 |
|
| 115 |
# |
| 116 |
# Our custom rules |
| 117 |
# |
| 118 |
nodeca/indent: [ 2, spaces, 2 ] |