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

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
Valentin Popov 2020-02-14 12:10:59 +04:00
parent 407a013100
commit f9ebfb719a
Signed by: Valentin Popov
GPG Key ID: 269A00ACA90A8EA3
2 changed files with 9 additions and 1 deletions

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"

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"
],