Skip to content

Commit

Permalink
fix: do not mutate newTypes (#11978)
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Aug 19, 2020
1 parent 96cc829 commit 1b0f19b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eslint/babel-eslint-parser/src/visitor-keys.js
Expand Up @@ -19,4 +19,4 @@ export const conflictTypes = {
ExportAllDeclaration: ESLINT_VISITOR_KEYS.ExportAllDeclaration,
};

export default Object.assign(newTypes, t.VISITOR_KEYS, conflictTypes);
export default { ...newTypes, ...t.VISITOR_KEYS, ...conflictTypes };

0 comments on commit 1b0f19b

Please sign in to comment.