2017-10-26 19:10:52 +00:00
|
|
|
module.exports = {
|
2019-09-14 22:29:40 +00:00
|
|
|
"parser": '@typescript-eslint/parser',
|
2019-01-08 05:16:54 +00:00
|
|
|
"plugins": [
|
2019-09-14 22:29:40 +00:00
|
|
|
'@typescript-eslint',
|
2019-01-08 05:16:54 +00:00
|
|
|
],
|
2019-09-14 22:29:40 +00:00
|
|
|
"extends": ["plugin:@typescript-eslint/recommended"],
|
2017-10-26 19:10:52 +00:00
|
|
|
"rules": {
|
2017-11-29 21:29:04 +00:00
|
|
|
"dot-location" : [ "error", "property" ],
|
|
|
|
"linebreak-style": [ "error", "unix" ],
|
|
|
|
"eqeqeq" : [ "error" ],
|
|
|
|
"curly" : [ "error", "all" ],
|
|
|
|
"dot-notation" : [ "error" ],
|
|
|
|
"no-throw-literal" : [ "error" ],
|
|
|
|
"no-useless-call" : [ "error" ],
|
|
|
|
"no-unmodified-loop-condition": [ "error" ],
|
2019-09-17 18:46:26 +00:00
|
|
|
"quote-props" : [ "error", "as-needed" ],
|
2017-11-29 21:29:04 +00:00
|
|
|
"quotes": [ "error","double" ],
|
2019-09-20 14:09:39 +00:00
|
|
|
"no-shadow" : "error",
|
2019-09-14 22:29:40 +00:00
|
|
|
"no-console": ["error", { "allow": ["warn"] }],
|
2019-09-14 23:55:39 +00:00
|
|
|
"@typescript-eslint/no-object-literal-type-assertion" : "off",
|
2019-09-16 03:32:40 +00:00
|
|
|
"@typescript-eslint/no-unused-vars": "off",
|
2019-09-14 22:29:40 +00:00
|
|
|
"sort-imports": ["error", {
|
|
|
|
"ignoreCase": true,
|
|
|
|
"ignoreDeclarationSort": true,
|
|
|
|
"ignoreMemberSort": false,
|
|
|
|
"memberSyntaxSortOrder": ["none", "all", "multiple", "single"]
|
|
|
|
}],
|
2017-11-29 21:29:04 +00:00
|
|
|
"no-lonely-if" : [ "error" ],
|
|
|
|
"semi": [ "error", "always" ],
|
2018-06-20 19:12:02 +00:00
|
|
|
"no-cond-assign" : ["error", "always"],
|
2019-09-14 22:29:40 +00:00
|
|
|
"indent": "off",
|
2019-09-17 17:40:21 +00:00
|
|
|
"no-var": "error",
|
2019-09-17 23:31:46 +00:00
|
|
|
"prefer-arrow-callback": "error",
|
2019-09-14 22:29:40 +00:00
|
|
|
"@typescript-eslint/indent": [ "error", "tab", { "SwitchCase": 1 } ],
|
|
|
|
"@typescript-eslint/explicit-member-accessibility": "off",
|
|
|
|
"@typescript-eslint/explicit-function-return-type" : "off",
|
2017-11-29 21:29:04 +00:00
|
|
|
"no-multi-spaces" : [ "error" ],
|
|
|
|
"array-bracket-spacing" : [ "error" , "never" ],
|
|
|
|
"block-spacing": [ "error", "always" ],
|
|
|
|
"func-call-spacing" : [ "error", "never" ],
|
2019-09-14 22:29:40 +00:00
|
|
|
"key-spacing" : [ "error", {"beforeColon" : false, "afterColon" : true} ],
|
2017-11-29 21:29:04 +00:00
|
|
|
"brace-style": [ "error", "1tbs" ],
|
|
|
|
"space-in-parens": [ "error", "never" ],
|
|
|
|
"eol-last": [ "error", "always" ],
|
2019-09-14 22:29:40 +00:00
|
|
|
"@typescript-eslint/no-explicit-any" : "off",
|
|
|
|
"@typescript-eslint/no-use-before-define" : "off",
|
|
|
|
"@typescript-eslint/array-type" : "off",
|
|
|
|
"spaced-comment": [ "error", "always", {
|
|
|
|
"line": { "exceptions": ["-"] },
|
|
|
|
"block" : { "balanced" : true },
|
|
|
|
}],
|
|
|
|
"lines-between-class-members": "off",
|
2017-11-29 21:29:04 +00:00
|
|
|
"no-multiple-empty-lines": [ "error", { "max": 1, "maxEOF": 1, "maxBOF": 0} ],
|
|
|
|
"no-unneeded-ternary": [ "error" ],
|
|
|
|
"object-curly-spacing": [ "error" , "always" ],
|
|
|
|
"space-unary-ops": [ "error" , { "words" : true, "nonwords" : false } ],
|
2018-01-02 15:37:27 +00:00
|
|
|
"block-spacing" : ["error", "always"],
|
|
|
|
"keyword-spacing" : ["error", { "before": true }],
|
2018-08-27 01:57:33 +00:00
|
|
|
"space-before-function-paren": ["error", {"anonymous": "never", "named": "never", "asyncArrow": "always"}],
|
2018-03-05 17:25:33 +00:00
|
|
|
"comma-spacing": ["error", { "before": false, "after": true }],
|
2019-09-14 22:29:40 +00:00
|
|
|
"arrow-spacing": ["error", { "before": true, "after": true }],
|
|
|
|
"space-before-blocks": ["error", { "functions": "always", "keywords": "always", "classes": "always" }]
|
2017-10-26 19:10:52 +00:00
|
|
|
}
|
|
|
|
};
|