feat(eslint): Rule "no-restricted-properties"
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
parent
407a013100
commit
f9ebfb719a
@ -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"
|
||||
|
@ -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"
|
||||
],
|
||||
|
Loading…
x
Reference in New Issue
Block a user