fix: do not mutate newTypes (#11978)

This commit is contained in:
Huáng Jùnliàng 2020-08-19 15:35:27 -04:00 committed by GitHub
parent 96cc8292b7
commit 1b0f19b019
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,4 +19,4 @@ export const conflictTypes = {
ExportAllDeclaration: ESLINT_VISITOR_KEYS.ExportAllDeclaration, ExportAllDeclaration: ESLINT_VISITOR_KEYS.ExportAllDeclaration,
}; };
export default Object.assign(newTypes, t.VISITOR_KEYS, conflictTypes); export default { ...newTypes, ...t.VISITOR_KEYS, ...conflictTypes };