10000 dont do es6 destructuring assignment · MechJosh0/eslint-plugin-vue@639f503 · GitHub
[go: up one dir, main page]

Skip to content

Commit 639f503

Browse files
committed
dont do es6 destructuring assignment
1 parent b247a19 commit 639f503

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/rules/attribute-hyphenation.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ module.exports = {
4646

4747
create (context) {
4848
const sourceCode = context.getSourceCode()
49-
const [option, optionsPayload] = context.options
49+
const option = context.options[0]
50+
const optionsPayload = context.options[1]
5051
const useHyphenated = option !== 'never'
5152
let ignoredAttributes = []
5253

0 commit comments

Comments
 (0)
0