|
| 1 | +env: |
| 2 | + node: true |
| 3 | + browser: false |
| 4 | + es6: true |
| 5 | + |
| 6 | +rules: |
| 7 | + accessor-pairs: 2 |
| 8 | + array-bracket-spacing: [ 2, "always", { "singleValue": true, "objectsInArrays": true, "arraysInArrays": true } ] |
| 9 | + block-scoped-var: 2 |
| 10 | + block-spacing: 2 |
| 11 | + brace-style: [ 2, '1tbs', { "allowSingleLine": true } ] |
| 12 | + # Postponed |
| 13 | + #callback-return: 2 |
| 14 | + comma-dangle: 2 |
| 15 | + comma-spacing: 2 |
| 16 | + comma-style: 2 |
| 17 | + computed-property-spacing: [ 2, never ] |
| 18 | + # Postponed |
| 19 | + #consistent-return: 2 |
| 20 | + consistent-this: [ 2, self ] |
| 21 | + # ? change to multi |
| 22 | + curly: [ 2, 'multi-line' ] |
| 23 | + # Postponed |
| 24 | + # dot-notation: [ 2, { allowKeywords: true } ] |
| 25 | + dot-location: [ 2, 'property' ] |
| 26 | + eol-last: 2 |
| 27 | + eqeqeq: 2 |
| 28 | + func-style: [ 2, declaration ] |
| 29 | + # Postponed |
| 30 | + #global-require: 2 |
| 31 | + guard-for-in: 2 |
| 32 | + handle-callback-err: 2 |
| 33 | + |
| 34 | + # Postponed |
| 35 | + indent: [ 2, 2, { VariableDeclarator: { var: 2, let: 2, const: 3 }, SwitchCase: 1 } ] |
| 36 | + |
| 37 | + # key-spacing: [ 2, { "align": "value" } ] |
| 38 | + keyword-spacing: 2 |
| 39 | + linebreak-style: 2 |
| 40 | + max-depth: [ 1, 3 ] |
| 41 | + max-nested-callbacks: [ 1, 5 ] |
| 42 | + # string can exceed 80 chars, but should not overflow github website :) |
| 43 | + max-len: [ 2, 120, 1000 ] |
| 44 | + new-cap: 2 |
| 45 | + new-parens: 2 |
| 46 | + # Postponed |
| 47 | + #newline-after-var: 2 |
| 48 | + no-alert: 2 |
| 49 | + no-array-constructor: 2 |
| 50 | + no-bitwise: 2 |
| 51 | + no-caller: 2 |
| 52 | + #no-case-declarations: 2 |
| 53 | + no-catch-shadow: 2 |
| 54 | + no-cond-assign: 2 |
| 55 | + no-console: 1 |
| 56 | + no-constant-condition: 2 |
| 57 | + no-control-regex: 2 |
| 58 | + no-debugger: 1 |
| 59 | + no-delete-var: 2 |
| 60 | + no-div-regex: 2 |
| 61 | + no-dupe-args: 2 |
| 62 | + no-dupe-keys: 2 |
| 63 | + no-duplicate-case: 2 |
| 64 | + no-else-return: 2 |
| 65 | + # Tend to drop |
| 66 | + # no-empty: 1 |
| 67 | + no-empty-character-class: 2 |
| 68 | + no-empty-pattern: 2 |
| 69 | + no-eq-null: 2 |
| 70 | + no-eval: 2 |
| 71 | + no-ex-assign: 2 |
| 72 | + no-extend-native: 2 |
| 73 | + no-extra-bind: 2 |
| 74 | + no-extra-boolean-cast: 2 |
| 75 | + no-extra-semi: 2 |
| 76 | + no-fallthrough: 2 |
| 77 | + no-floating-decimal: 2 |
| 78 | + no-func-assign: 2 |
| 79 | + # Postponed |
| 80 | + #no-implicit-coercion: [2, { "boolean": true, "number": true, "string": true } ] |
| 81 | + no-implied-eval: 2 |
| 82 | + no-inner-declarations: 2 |
| 83 | + no-invalid-regexp: 2 |
| 84 | + no-irregular-whitespace: 2 |
| 85 | + no-iterator: 2 |
| 86 | + no-label-var: 2 |
| 87 | + no-labels: 2 |
| 88 | + no-lone-blocks: 1 |
| 89 | + no-lonely-if: 2 |
| 90 | + no-loop-func: 2 |
| 91 | + no-mixed-requires: [ 1, { "grouping": true } ] |
| 92 | + no-mixed-spaces-and-tabs: 2 |
| 93 | + # Postponed |
| 94 | + #no-native-reassign: 2 |
| 95 | + no-negated-in-lhs: 2 |
| 96 | + # Postponed |
| 97 | + #no-nested-ternary: 2 |
| 98 | + no-new: 2 |
| 99 | + no-new-func: 2 |
| 100 | + no-new-object: 2 |
| 101 | + no-new-require: 2 |
| 102 | + no-new-wrappers: 2 |
| 103 | + no-obj-calls: 2 |
| 104 | + no-octal: 2 |
| 105 | + no-octal-escape: 2 |
| 106 | + no-path-concat: 2 |
| 107 | + no-proto: 2 |
| 108 | + no-redeclare: 2 |
| 109 | + # Postponed |
| 110 | + #no-regex-spaces: 2 |
| 111 | + no-return-assign: 2 |
| 112 | + no-self-compare: 2 |
| 113 | + no-sequences: 2 |
| 114 | + # Postponed |
| 115 | + #no-shadow: 2 |
| 116 | + no-shadow-restricted-names: 2 |
| 117 | + no-sparse-arrays: 2 |
| 118 | + # Postponed |
| 119 | + #no-sync: 2 |
| 120 | + no-trailing-spaces: 2 |
| 121 | + no-undef: 2 |
| 122 | + no-undef-init: 2 |
| 123 | + no-undefined: 2 |
| 124 | + no-unexpected-multiline: 2 |
| 125 | + no-unreachable: 2 |
| 126 | + no-unused-expressions: 2 |
| 127 | + no-unused-vars: 2 |
| 128 | + no-use-before-define: 2 |
| 129 | + no-void: 2 |
| 130 | + no-with: 2 |
| 131 | + object-curly-spacing: [ 2, always, { "objectsInObjects": true, "arraysInObjects": true } ] |
| 132 | + operator-assignment: 1 |
| 133 | + # Postponed |
| 134 | + #operator-linebreak: [ 2, after ] |
| 135 | + semi: 2 |
| 136 | + semi-spacing: 2 |
| 137 | + space-before-function-paren: [ 2, { "anonymous": "always", "named": "never" } ] |
| 138 | + space-in-parens: [ 2, never ] |
| 139 | + space-infix-ops: 2 |
| 140 | + space-unary-ops: 2 |
| 141 | + # Postponed |
| 142 | + #spaced-comment: [ 1, always, { exceptions: [ '/', '=' ] } ] |
| 143 | + strict: [ 2, global ] |
| 144 | + quotes: [ 2, single, avoid-escape ] |
| 145 | + quote-props: [ 1, 'as-needed', { "keywords": true } ] |
| 146 | + radix: 2 |
| 147 | + use-isnan: 2 |
| 148 | + valid-typeof: 2 |
| 149 | + yoda: [ 2, never, { "exceptRange": true } ] |
| 150 | + |
| 151 | + # |
| 152 | + # es6 |
| 153 | + # |
| 154 | + arrow-body-style: [ 1, "as-needed" ] |
| 155 | + arrow-parens: [ 1, "as-needed" ] |
| 156 | + arrow-spacing: 2 |
| 157 | + constructor-super: 2 |
| 158 | + generator-star-spacing: [ 2, {"before": false, "after": true } ] |
| 159 | + no-class-assign: 2 |
| 160 | + no-confusing-arrow: [ 1, { allowParens: true } ] |
| 161 | + no-const-assign: 2 |
| 162 | + #no-constant-condition: 2 |
| 163 | + no-dupe-class-members: 2 |
| 164 | + no-this-before-super: 2 |
| 165 | + # Postponed |
| 166 | + #no-var: 2 |
| 167 | + object-shorthand: 1 |
| 168 | + # Postponed |
| 169 | + #prefer-arrow-callback: 1 |
| 170 | + # Postponed |
| 171 | + #prefer-const: 1 |
| 172 | + #prefer-reflect |
| 173 | + #prefer-spread |
| 174 | + # Postponed |
| 175 | + #prefer-template: 1 |
| 176 | + require-yield: 1 |
0 commit comments