chore(lint): add @typescript-eslint/type-annotation-spacing rule (#897)

This commit is contained in:
Joel Einbinder 2020-02-07 13:36:49 -08:00 committed by GitHub
parent 871235939e
commit 487d394f3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
15 changed files with 30 additions and 29 deletions

View File

@ -41,7 +41,6 @@ module.exports = {
"brace-style": [2, "1tbs", {"allowSingleLine": true}],
"curly": [2, "multi-or-nest", "consistent"],
"new-parens": 2,
"func-call-spacing": 2,
"arrow-parens": [2, "as-needed"],
"prefer-const": 2,
"quote-props": [2, "consistent"],
@ -96,6 +95,8 @@ module.exports = {
"after": true,
"before": true
}],
"@typescript-eslint/func-call-spacing": 2,
"@typescript-eslint/type-annotation-spacing": 2,
// file whitespace
"no-multiple-empty-lines": [2, {"max": 2}],

View File

@ -11,6 +11,6 @@ module.exports = {
*/
"rules": {
"no-console": [2, { "allow": ["warn", "error", "assert", "timeStamp", "time", "timeEnd"] }],
"no-debugger": 0,
"no-debugger": 0
}
};