Skip to content

Commit

Permalink
fix: revert vueCompilerOptions.dataAttributes default value to []
Browse files Browse the repository at this point in the history
close #1965
  • Loading branch information
johnsoncodehk committed Oct 11, 2022
1 parent 2380085 commit 761f386
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
"dataAttributes": {
"type": "array",
"default": ["data-*"],
"default": [],
"markdownDescription": "A glob matcher array that should always avoid recognized as HTML Attributes and Component props."
},
"htmlAttributes": {
Expand Down
2 changes: 1 addition & 1 deletion vue-language-tools/vue-language-core/src/utils/ts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export function resolveVueCompilerOptions(vueOptions: VueCompilerOptions): Resol
jsxTemplates: vueOptions.jsxTemplates ?? false,
strictTemplates: vueOptions.strictTemplates ?? false,
skipTemplateCodegen: vueOptions.skipTemplateCodegen ?? false,
dataAttributes: vueOptions.dataAttributes ?? ['data-*'],
dataAttributes: vueOptions.dataAttributes ?? [],
htmlAttributes: vueOptions.htmlAttributes ?? ['aria-*'],
optionsWrapper: vueOptions.optionsWrapper ?? (
target >= 2.7
Expand Down

0 comments on commit 761f386

Please sign in to comment.