summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/default.json8
2 files changed, 9 insertions, 1 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index 0832f8b..46c3102 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -173,7 +173,7 @@
- [ ] "no-restricted-globals"
- [ ] "no-restricted-imports"
- [ ] "no-restricted-modules"
-- [ ] "no-restricted-properties"
+- [X] "no-restricted-properties"
- [ ] "no-restricted-syntax"
- [ ] "no-return-assign"
- [X] "no-return-await"
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"
],