From 38c8f71dcca7bc08e72d4ba599a2da97e1b93e1d Mon Sep 17 00:00:00 2001 From: Yaroslav Bolyukin Date: Tue, 30 May 2023 07:53:08 +0000 Subject: [PATCH] test: add new eslint rules --- --- a/tests/.eslintrc.json +++ b/tests/.eslintrc.json @@ -86,6 +86,14 @@ "array-bracket-spacing": "warn", "template-curly-spacing": "warn", "space-in-parens": "warn", + "arrow-body-style": ["warn", "as-needed"], + "no-restricted-syntax": [ + "warn", + { + "message": "toHuman results in horrible, hard to debug conversions with no stability guarantees, use Codec/at least .toJson instead", + "selector": "MemberExpression > Identifier[name=\"toHuman\"]" + } + ], "@typescript-eslint/naming-convention": [ "warn", { -- gitstuff