|
| 1 | +# https://github.com/eslint/eslint/blob/master/docs/rules/README.md |
| 2 | + |
| 3 | +rules: |
| 4 | + accessor-pairs: [2] |
| 5 | + array-bracket-spacing: [2, never] |
| 6 | + array-callback-return: [0] |
| 7 | + arrow-body-style: [2, as-needed] |
| 8 | + arrow-parens: [2, as-needed] |
| 9 | + arrow-spacing: [2, {before: true, after: true}] |
| 10 | + block-scoped-var: [2] |
| 11 | + brace-style: [2, 1tbs, {allowSingleLine: true}] |
| 12 | + camelcase: [2, {properties: never}] |
| 13 | + comma-dangle: [0] |
| 14 | + comma-spacing: [2, {before: false, after: true}] |
| 15 | + comma-style: [2, last] |
| 16 | + complexity: [0] |
| 17 | + computed-property-spacing: [2, never] |
| 18 | + consistent-return: [0] |
| 19 | + constructor-super: [2] |
| 20 | + curly: [0] |
| 21 | + default-case: [0] |
| 22 | + dot-location: [2, property] |
| 23 | + dot-notation: [0] |
| 24 | + eol-last: [2] |
| 25 | + eqeqeq: [2] |
| 26 | + generator-star-spacing: [2, before] |
| 27 | + global-require: [0] |
| 28 | + guard-for-in: [2] |
| 29 | + handle-callback-err: [2, ^(err|error)$] |
| 30 | + id-blacklist: [0] |
| 31 | + indent: [2, 2, {VariableDeclarator: 0}] |
| 32 | + jsx-quotes: [0] |
| 33 | + key-spacing: [0] |
| 34 | + keyword-spacing: [2] |
| 35 | + linebreak-style: [2, unix] |
| 36 | + lines-around-comment: [0] |
| 37 | + max-nested-callbacks: [0] |
| 38 | + new-cap: [0] |
| 39 | + new-parens: [2] |
| 40 | + newline-per-chained-call: [0] |
| 41 | + no-alert: [0] |
| 42 | + no-array-constructor: [0] |
| 43 | + no-bitwise: [2] |
| 44 | + no-caller: [2] |
| 45 | + no-case-declarations: [2] |
| 46 | + no-class-assign: [2] |
| 47 | + no-cond-assign: [2, except-parens] |
| 48 | + no-confusing-arrow: [2] |
| 49 | + no-const-assign: [2] |
| 50 | + no-constant-condition: [0] |
| 51 | + no-control-regex: [2] |
| 52 | + no-debugger: [2] |
| 53 | + no-delete-var: [2] |
| 54 | + no-div-regex: [0] |
| 55 | + no-dupe-args: [2] |
| 56 | + no-dupe-class-members: [2] |
| 57 | + no-dupe-keys: [2] |
| 58 | + no-duplicate-case: [2] |
| 59 | + no-else-return: [0] |
| 60 | + no-empty-character-class: [2] |
| 61 | + no-empty-function: [0] |
| 62 | + no-empty-pattern: [2] |
| 63 | + no-empty: [0] |
| 64 | + no-eq-null: [2] |
| 65 | + no-eval: [2] |
| 66 | + no-ex-assign: [2] |
| 67 | + no-extend-native: [2] |
| 68 | + no-extra-bind: [2] |
| 69 | + no-extra-boolean-cast: [2] |
| 70 | + no-extra-label: [0] |
| 71 | + no-extra-parens: [0] |
| 72 | + no-extra-semi: [2] |
| 73 | + no-fallthrough: [2] |
| 74 | + no-floating-decimal: [0] |
| 75 | + no-func-assign: [2] |
| 76 | + no-implicit-coercion: [2] |
| 77 | + no-implicit-globals: [0] |
| 78 | + no-implied-eval: [2] |
| 79 | + no-inline-comments: [0] |
| 80 | + no-inner-declarations: [2] |
| 81 | + no-invalid-regexp: [2] |
| 82 | + no-invalid-this: [0] |
| 83 | + no-irregular-whitespace: [2] |
| 84 | + no-iterator: [2] |
| 85 | + no-label-var: [2] |
| 86 | + no-labels: [2] |
| 87 | + no-lone-blocks: [2] |
| 88 | + no-lonely-if: [0] |
| 89 | + no-loop-func: [0] |
| 90 | + no-magic-numbers: [0] |
| 91 | + no-mixed-requires: [2, true] |
| 92 | + no-mixed-spaces-and-tabs: [2] |
| 93 | + no-multi-spaces: [0] |
| 94 | + no-multi-str: [2] |
| 95 | + no-multiple-empty-lines: [2, {max: 1}] |
| 96 | + no-native-reassign: [2] |
| 97 | + no-negated-condition: [0] |
| 98 | + no-negated-in-lhs: [2] |
| 99 | + no-nested-ternary: [0] |
| 100 | + no-new-func: [2] |
| 101 | + no-new-object: [2] |
| 102 | + no-new-require: [2] |
| 103 | + no-new-symbol: [2] |
| 104 | + no-new-wrappers: [2] |
| 105 | + no-new: [0] |
| 106 | + no-obj-calls: [2] |
| 107 | + no-octal-escape: [2] |
| 108 | + no-octal: [2] |
| 109 | + no-path-concat: [2] |
| 110 | + no-process-exit: [0] |
| 111 | + no-proto: [2] |
| 112 | + no-redeclare: [2] |
| 113 | + no-regex-spaces: [2] |
| 114 | + no-restricted-imports: [0] |
| 115 | + no-restricted-modules: [2, domain, freelist, smalloc, sys] |
| 116 | + no-restricted-syntax: [2, WithStatement] |
| 117 | + no-return-assign: [2, except-parens] |
| 118 | + no-script-url: [2] |
| 119 | + no-self-assign: [2] |
| 120 | + no-self-compare: [2] |
| 121 | + no-sequences: [2] |
| 122 | + no-shadow-restricted-names: [2] |
| 123 | + no-shadow: [0] |
| 124 | + no-spaced-func: [2] |
| 125 | + no-sparse-arrays: [2] |
| 126 | + no-this-before-super: [2] |
| 127 | + no-throw-literal: [2] |
| 128 | + no-trailing-spaces: [2] |
| 129 | + no-undef-init: [2] |
| 130 | + no-undef: [2] |
| 131 | + no-undefined: [0] |
| 132 | + no-underscore-dangle: [0] |
| 133 | + no-unexpected-multiline: [2] |
| 134 | + no-unmodified-loop-condition: [2] |
| 135 | + no-unneeded-ternary: [2] |
| 136 | + no-unreachable: [2] |
| 137 | + no-unused-expressions: [2] |
| 138 | + no-unused-labels: [0] |
| 139 | + no-unused-vars: [2, {args: all, argsIgnorePattern: ^_}] |
| 140 | + no-use-before-define: [2, nofunc] |
| 141 | + no-useless-call: [2] |
| 142 | + no-useless-concat: [2] |
| 143 | + no-useless-constructor: [2] |
| 144 | + no-warning-comments: [0] |
| 145 | + no-whitespace-before-property: [2] |
| 146 | + no-with: [2] |
| 147 | + object-curly-spacing: [2, never] |
| 148 | + one-var-declaration-per-line: [0] |
| 149 | + one-var: [0] |
| 150 | + operator-assignment: [2, always] |
| 151 | + operator-linebreak: [2, after] |
| 152 | + padded-blocks: [2, never] |
| 153 | + prefer-rest-params: [0] |
| 154 | + quote-props: [0] |
| 155 | + quotes: [2, single] |
| 156 | + radix: [2, as-needed] |
| 157 | + semi-spacing: [2, {before: false, after: true}] |
| 158 | + semi: [2, always] |
| 159 | + sort-imports: [0] |
| 160 | + space-before-blocks: [2, always] |
| 161 | + space-before-function-paren: [2, never] |
| 162 | + space-in-parens: [2, never] |
| 163 | + space-infix-ops: [2] |
| 164 | + space-unary-ops: [2] |
| 165 | + spaced-comment: [2, always, {markers: ["!"]}] |
| 166 | + strict: [0] |
| 167 | + template-curly-spacing: [2, never] |
| 168 | + use-isnan: [2] |
| 169 | + valid-typeof: [2] |
| 170 | + wrap-iife: [2, inside] |
| 171 | + yield-star-spacing: [2, {before: true, after: false}] |
| 172 | + yoda: [2, never] |
| 173 | + |
| 174 | +env: |
| 175 | + es6: true |
| 176 | + browser: true |
| 177 | + greasemonkey: true |
| 178 | + |
0 commit comments