|
| 1 | +{ |
| 2 | + "env": { |
| 3 | + "node": true, |
| 4 | + "es6": true |
| 5 | + }, |
| 6 | + "parserOptions": { |
| 7 | + "ecmaVersion": 8, |
| 8 | + "impliedStrict": true, |
| 9 | + "sourceType": "module" |
| 10 | + }, |
| 11 | + "parser": "typescript-eslint-parser", |
| 12 | + "plugins": [ |
| 13 | + "import", |
| 14 | + "markdown", |
| 15 | + "typescript" |
| 16 | + ], |
| 17 | + "rules": { |
| 18 | + "accessor-pairs": "off", |
| 19 | + "arrow-body-style": ["error", "always"], |
| 20 | + "array-bracket-spacing": ["error", "never"], |
| 21 | + "array-callback-return": "error", |
| 22 | + "arrow-parens": ["error", "always"], |
| 23 | + "arrow-spacing": "error", |
| 24 | + "block-spacing": "error", |
| 25 | + "block-scoped-var": "error", |
| 26 | + "brace-style": ["error", "1tbs"], |
| 27 | + "callback-return": ["error", [ |
| 28 | + "callback", |
| 29 | + "cb", |
| 30 | + "next"] |
| 31 | + ], |
| 32 | + "camelcase": ["error", { |
| 33 | + "properties": "always" |
| 34 | + }], |
| 35 | + "comma-dangle": "error", |
| 36 | + "comma-spacing": ["error", { |
| 37 | + "before": false, |
| 38 | + "after": true |
| 39 | + }], |
| 40 | + "comma-style": ["error", "last"], |
| 41 | + "complexity": ["off", 5], |
| 42 | + "computed-property-spacing": ["error", "never"], |
| 43 | + "consistent-this": ["error", "that"], |
| 44 | + "consistent-return": "error", |
| 45 | + "curly": ["error", "all"], |
| 46 | + "default-case": "error", |
| 47 | + "dot-location": ["error", "property"], |
| 48 | + "dot-notation": "error", |
| 49 | + "eol-last": "error", |
| 50 | + "eqeqeq": "error", |
| 51 | + "for-direction": "error", |
| 52 | + "func-call-spacing": "error", |
| 53 | + "func-names": "off", |
| 54 | + "func-style": ["error", "expression"], |
| 55 | + "guard-for-in": "error", |
| 56 | + "handle-callback-err": "error", |
| 57 | + "id-length": "off", |
| 58 | + "id-match": "off", |
| 59 | + "indent": ["error", 4, { |
| 60 | + "SwitchCase": 1, |
| 61 | + "VariableDeclarator": 1 |
| 62 | + }], |
| 63 | + "init-declarations": "off", |
| 64 | + "key-spacing": ["error", { |
| 65 | + "beforeColon": false, |
| 66 | + "afterColon": true |
| 67 | + }], |
| 68 | + "keyword-spacing": "error", |
| 69 | + "linebreak-style": "off", |
| 70 | + "lines-around-comment": "off", |
| 71 | + "lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }], |
| 72 | + "max-len": "off", |
| 73 | + "max-nested-callbacks": ["error", 5], |
| 74 | + "max-statements-per-line": "error", |
| 75 | + "multiline-comment-style": ["error", "starred-block"], |
| 76 | + "new-cap": "error", |
| 77 | + "new-parens": "error", |
| 78 | + "newline-per-chained-call": "error", |
| 79 | + "no-alert": "error", |
| 80 | + "no-array-constructor": "error", |
| 81 | + "no-buffer-constructor": "error", |
| 82 | + "no-caller": "error", |
| 83 | + "no-case-declarations": "error", |
| 84 | + "no-cond-assign": "error", |
| 85 | + "no-confusing-arrow": "error", |
| 86 | + "no-console": "off", |
| 87 | + "no-const-assign": "error", |
| 88 | + "no-constant-condition": "error", |
| 89 | + "no-control-regex": "error", |
| 90 | + "no-debugger": "error", |
| 91 | + "no-delete-var": "error", |
| 92 | + "no-div-regex": "error", |
| 93 | + "no-dupe-args": "error", |
| 94 | + "no-dupe-class-members": "error", |
| 95 | + "no-dupe-keys": "error", |
| 96 | + "no-duplicate-case": "error", |
| 97 | + "no-else-return": "error", |
| 98 | + "no-empty": "error", |
| 99 | + "no-empty-character-class": "error", |
| 100 | + "no-empty-pattern": "error", |
| 101 | + "no-eq-null": "error", |
| 102 | + "no-ex-assign": "error", |
| 103 | + "no-extend-native": "error", |
| 104 | + "no-extra-bind": "error", |
| 105 | + "no-extra-boolean-cast": "error", |
| 106 | + "no-extra-parens": "off", |
| 107 | + "no-extra-semi": "error", |
| 108 | + "no-eval": "error", |
| 109 | + "no-fallthrough": "error", |
| 110 | + "no-floating-decimal": "error", |
| 111 | + "no-func-assign": "error", |
| 112 | + "no-global-assign": "error", |
| 113 | + "no-implicit-coercion": "off", |
| 114 | + "no-implicit-globals": "error", |
| 115 | + "no-implied-eval": "error", |
| 116 | + "no-inner-declarations": ["error", "functions"], |
| 117 | + "no-invalid-regexp": "error", |
| 118 | + "no-invalid-this": "error", |
| 119 | + "no-irregular-whitespace": "error", |
| 120 | + "no-iterator": "error", |
| 121 | + "no-labels": "error", |
| 122 | + "no-label-var": "error", |
| 123 | + "no-lone-blocks": "error", |
| 124 | + "no-lonely-if": "error", |
| 125 | + "no-loop-func": "error", |
| 126 | + "no-mixed-operators": "off", |
| 127 | + "no-mixed-requires": [1, true], |
| 128 | + "no-mixed-spaces-and-tabs": ["error", "smart-tabs"], |
| 129 | + "no-multiple-empty-lines": ["error", { |
| 130 | + "max": 2, |
| 131 | + "maxEOF": 0, |
| 132 | + "maxBOF": 0 |
| 133 | + }], |
| 134 | + "no-multi-spaces": "error", |
| 135 | + "no-multi-str": "error", |
| 136 | + "no-nested-ternary": "error", |
| 137 | + "no-new": "error", |
| 138 | + "no-new-func": "error", |
| 139 | + "no-new-object": "error", |
| 140 | + "no-new-require": "error", |
| 141 | + "no-new-wrappers": "error", |
| 142 | + "no-obj-calls": "error", |
| 143 | + "no-octal-escape": "error", |
| 144 | + "no-octal": "error", |
| 145 | + "no-param-reassign": ["error", { |
| 146 | + "props": false |
| 147 | + }], |
| 148 | + "no-path-concat": "error", |
| 149 | + "no-plusplus": "off", |
| 150 | + "no-proto": "error", |
| 151 | + "no-process-env": "error", |
| 152 | + "no-process-exit": "error", |
| 153 | + "no-prototype-builtins": "off", |
| 154 | + "no-redeclare": "off", |
| 155 | + "no-regex-spaces": "error", |
| 156 | + "no-restricted-globals": "error", |
| 157 | + "no-restricted-modules": "error", |
| 158 | + "no-restricted-properties": "error", |
| 159 | + "no-restricted-syntax": "off", |
| 160 | + "no-return-assign": "error", |
| 161 | + "no-script-url": "error", |
| 162 | + "no-self-assign": "error", |
| 163 | + "no-self-compare": "error", |
| 164 | + "no-sequences": "error", |
| 165 | + "no-shadow-restricted-names": "error", |
| 166 | + "no-sparse-arrays": "error", |
| 167 | + "no-sync": "error", |
| 168 | + "no-ternary": "off", |
| 169 | + "no-throw-literal": "error", |
| 170 | + "no-trailing-spaces": "error", |
| 171 | + "no-undef-init": "error", |
| 172 | + "no-undefined": "off", |
| 173 | + "no-underscore-dangle": "off", |
| 174 | + "no-unexpected-multiline": "error", |
| 175 | + "no-unmodified-loop-condition": "error", |
| 176 | + "no-unneeded-ternary": "error", |
| 177 | + "no-unreachable": "error", |
| 178 | + "no-unsafe-finally": "error", |
| 179 | + "no-unsafe-negation": "error", |
| 180 | + "no-unused-expressions": "error", |
| 181 | + "no-unused-vars": "off", |
| 182 | + "no-use-before-define": "error", |
| 183 | + "no-useless-call": "error", |
| 184 | + "no-useless-computed-key": "error", |
| 185 | + "no-useless-concat": "error", |
| 186 | + "no-useless-escape": "error", |
| 187 | + "no-useless-rename": "error", |
| 188 | + "no-var": "error", |
| 189 | + "no-void": "off", |
| 190 | + "no-warning-comments": ["warn", { |
| 191 | + "terms": [ "fixme" ], |
| 192 | + "location": "start" |
| 193 | + }], |
| 194 | + "no-with": "error", |
| 195 | + "object-shorthand": "error", |
| 196 | + "object-curly-newline": ["error", { |
| 197 | + "multiline": true |
| 198 | + }], |
| 199 | + "object-curly-spacing": ["off", "always", { |
| 200 | + "objectsInObjects": false, |
| 201 | + "arraysInObjects": false |
| 202 | + }], |
| 203 | + "one-var": "off", |
| 204 | + "operator-assignment": ["error", "always"], |
| 205 | + "operator-linebreak": ["error", "after"], |
| 206 | + "padding-line-between-statements": [ "error", |
| 207 | + { "blankLine": "always", "prev": "*", "next": "return" }, |
| 208 | + |
| 209 | + { "blankLine": "always", "prev": ["const", "let", "var"], "next": "*"}, |
| 210 | + { "blankLine": "any", "prev": ["const", "let", "var"], "next": ["const", "let", "var"]}, |
| 211 | + |
| 212 | + { "blankLine": "always", "prev": "directive", "next": "*" }, |
| 213 | + { "blankLine": "any", "prev": "directive", "next": "directive" } |
| 214 | + ], |
| 215 | + "prefer-arrow-callback": "error", |
| 216 | + "prefer-const": "error", |
| 217 | + "prefer-numeric-literals": "error", |
| 218 | + "prefer-rest-params": "error", |
| 219 | + "prefer-spread": "error", |
| 220 | + "prefer-template": "error", |
| 221 | + "quotes": ["error", "single", { "allowTemplateLiterals": true }], |
| 222 | + "quote-props": ["error", "as-needed"], |
| 223 | + "radix": "off", |
| 224 | + "require-await": "error", |
| 225 | + "semi-spacing": ["error", { |
| 226 | + "before": false, |
| 227 | + "after": true |
| 228 | + }], |
| 229 | + "semi": ["error", "always"], |
| 230 | + "semi-style": ["error", "last"], |
| 231 | + "sort-keys": ["error", "asc", { "caseSensitive": false }], |
| 232 | + "sort-vars": "off", |
| 233 | + "spaced-comment": ["error", "always"], |
| 234 | + "space-in-parens": ["error", "never"], |
| 235 | + "space-unary-ops": ["error", { |
| 236 | + "words": true, |
| 237 | + "nonwords": false |
| 238 | + }], |
| 239 | + "strict": ["error", "never"], // We are using alwaysStrict=true as a compiler option of TS |
| 240 | + "switch-colon-spacing": ["error", { "after" : true, "before" : false }], |
| 241 | + "template-curly-spacing": "error", |
| 242 | + "use-isnan": "error", |
| 243 | + "unicode-bom": "error", |
| 244 | + "valid-jsdoc": "off", |
| 245 | + "valid-typeof": "error", |
| 246 | + "vars-on-top": "off", |
| 247 | + "wrap-iife": ["error", "outside"], |
| 248 | + "wrap-regex": "error", |
| 249 | + "yoda": ["error", "never"], |
| 250 | + |
| 251 | + "typescript/class-name-casing": "error", |
| 252 | + "typescript/explicit-member-accessibility": "error", |
| 253 | + "typescript/interface-name-prefix": [ "error", "always" ], |
| 254 | + "typescript/member-delimiter-style": "error", |
| 255 | + "typescript/member-naming": "error", |
| 256 | + "typescript/no-angle-bracket-type-assertion": "error", |
| 257 | + "typescript/no-array-constructor": "error", |
| 258 | + "typescript/no-namespace": "error", |
| 259 | + "typescript/no-parameter-properties": "error", |
| 260 | + "typescript/no-triple-slash-reference": "error", |
| 261 | + "typescript/no-unused-vars": "off", |
| 262 | + "typescript/no-use-before-define": "error", |
| 263 | + "typescript/prefer-namespace-keyword": "error", |
| 264 | + "typescript/type-annotation-spacing": "error" |
| 265 | + } |
| 266 | +} |
0 commit comments