Skip to content

Commit

Permalink
fix: do not mutate newTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Aug 19, 2020
1 parent 180e9c0 commit c3ce0cf
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 c3ce0cf

Please sign in to comment.