Skip to content

Commit bfb41ef

Browse files
committed
Fix node 4 support
1 parent a91efe1 commit bfb41ef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/rules/no-dupe-keys.js

+1-1
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

+1-1
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 groups = new Set(GROUP_NAMES.concat(options.groups || []))
1819
const reservedKeys = new Set([...RESERVED_KEYS, ...options.reserved || []])
19-
const groups = new Set([...GROUP_NAMES, ...options.groups || []])
2020

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

0 commit comments

Comments
 (0)