Update checked-in dependencies
This commit is contained in:
parent
6b0d45a5c6
commit
cc1adb825a
4247 changed files with 144820 additions and 149530 deletions
8
node_modules/eslint/lib/rules/no-useless-constructor.js
generated
vendored
8
node_modules/eslint/lib/rules/no-useless-constructor.js
generated
vendored
|
|
@ -162,6 +162,14 @@ module.exports = {
|
|||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
* Prevent crashing on parsers which do not require class constructor
|
||||
* to have a body, e.g. typescript and flow
|
||||
*/
|
||||
if (!node.value.body) {
|
||||
return;
|
||||
}
|
||||
|
||||
const body = node.value.body.body;
|
||||
const ctorParams = node.value.params;
|
||||
const superClass = node.parent.parent.superClass;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue