feat(eslint): Rule "no-restricted-properties"

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
Valentin Popov committed 2020-02-14 12:10:59 +04:00
1 parent 407a013100
commit f9ebfb719a
2 files changed
+9 -1

No files matched your search

+1 -1
View File
@@ -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"
+8
View File
@@ -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"
],