diff options
author | Valentin Popov <info@valentineus.link> | 2020-02-14 11:10:59 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-02-14 11:10:59 +0300 |
commit | f9ebfb719aa850b01ce3e1ee3a9d7ab359e73058 (patch) | |
tree | 9abffea31fd58ea4cf55d0cf6bfb4abc2344217c /src/rules | |
parent | 407a0131006a95552fba3e9143734ffb554bde67 (diff) | |
download | eslint-config-f9ebfb719aa850b01ce3e1ee3a9d7ab359e73058.tar.xz eslint-config-f9ebfb719aa850b01ce3e1ee3a9d7ab359e73058.zip |
feat(eslint): Rule "no-restricted-properties"
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'src/rules')
-rw-r--r-- | src/rules/default.json | 8 |
1 files changed, 8 insertions, 0 deletions
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" ], |