Skip to content

Commit 239dff6

Browse files
committed
Fix node 4 support
1 parent a91efe1 commit 239dff6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/rules/no-dupe-keys.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function create (context) {
1616
const usedNames = []
1717

1818
const options = context.options[0] || {}
19-
const groups = new Set([...GROUP_NAMES, ...options.groups || []])
19+
const groups = new Set(GROUP_NAMES.concat(options.groups || []))
2020

2121
// ----------------------------------------------------------------------
2222
// Public

lib/rules/no-reservered-keys.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ const GROUP_NAMES = ['props', 'computed', 'data', 'methods']
1515

1616
function create (context) {
1717
const options = context.options[0] || {}
18-
const reservedKeys = new Set([...RESERVED_KEYS, ...options.reserved || []])
19-
const groups = new Set([...GROUP_NAMES, ...options.groups || []])
18+
const reservedKeys = new Set(RESERVED_KEYS.concat(options.reserved || []))
19+
const groups = new Set(GROUP_NAMES.concat(options.groups || []))
2020

2121
// ----------------------------------------------------------------------
2222
// Public

0 commit comments

Comments
 (0)