chore(lint): add @typescript-eslint/type-annotation-spacing rule (#897)
This commit is contained in:
parent
871235939e
commit
487d394f3b
|
|
@ -41,7 +41,6 @@ module.exports = {
|
||||||
"brace-style": [2, "1tbs", {"allowSingleLine": true}],
|
"brace-style": [2, "1tbs", {"allowSingleLine": true}],
|
||||||
"curly": [2, "multi-or-nest", "consistent"],
|
"curly": [2, "multi-or-nest", "consistent"],
|
||||||
"new-parens": 2,
|
"new-parens": 2,
|
||||||
"func-call-spacing": 2,
|
|
||||||
"arrow-parens": [2, "as-needed"],
|
"arrow-parens": [2, "as-needed"],
|
||||||
"prefer-const": 2,
|
"prefer-const": 2,
|
||||||
"quote-props": [2, "consistent"],
|
"quote-props": [2, "consistent"],
|
||||||
|
|
@ -96,6 +95,8 @@ module.exports = {
|
||||||
"after": true,
|
"after": true,
|
||||||
"before": true
|
"before": true
|
||||||
}],
|
}],
|
||||||
|
"@typescript-eslint/func-call-spacing": 2,
|
||||||
|
"@typescript-eslint/type-annotation-spacing": 2,
|
||||||
|
|
||||||
// file whitespace
|
// file whitespace
|
||||||
"no-multiple-empty-lines": [2, {"max": 2}],
|
"no-multiple-empty-lines": [2, {"max": 2}],
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,6 @@ module.exports = {
|
||||||
*/
|
*/
|
||||||
"rules": {
|
"rules": {
|
||||||
"no-console": [2, { "allow": ["warn", "error", "assert", "timeStamp", "time", "timeEnd"] }],
|
"no-console": [2, { "allow": ["warn", "error", "assert", "timeStamp", "time", "timeEnd"] }],
|
||||||
"no-debugger": 0,
|
"no-debugger": 0
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue