File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -68,9 +68,10 @@ module.exports = {
68
68
* @param {Object } node The node we're getting the name of
69
69
*/
70
70
function getPropKey ( node ) {
71
- // Check for `ExperimentalSpreadProperty` so we can skip validation of those fields.
72
- // Otherwise it will look for `node.value.property` which doesn't exist and breaks Eslint.
73
- if ( node . type === 'ExperimentalSpreadProperty' ) {
71
+ // Check for `ExperimentalSpreadProperty` (ESLint 3/4) and `SpreadElement` (ESLint 5)
72
+ // so we can skip validation of those fields.
73
+ // Otherwise it will look for `node.value.property` which doesn't exist and breaks ESLint.
74
+ if ( node . type === 'ExperimentalSpreadProperty' || node . type === 'SpreadElement' ) {
74
75
return null ;
75
76
}
76
77
if ( node . value . property ) {
You can’t perform that action at this time.
0 commit comments