From f9ebfb719aa850b01ce3e1ee3a9d7ab359e73058 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Fri, 14 Feb 2020 12:10:59 +0400 Subject: feat(eslint): Rule "no-restricted-properties" Signed-off-by: Valentin Popov --- src/rules/default.json | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') diff --git a/src/rules/default.json b/src/rules/default.json index 233828e..8f30d7e 100644 --- a/src/rules/default.json +++ b/src/rules/default.json @@ -340,6 +340,14 @@ "no-proto": [ "error" ], + "no-restricted-properties": [ + "error", + { + "message": "Use the exponentiation operator (**) instead of Math.pow()", + "object": "Math", + "property": "pow" + } + ], "no-return-await": [ "error" ], -- cgit v1.2.3