Commit 6553ded7 authored by David Sveningsson's avatar David Sveningsson

fix(config): update `--init` config for html-validate-vue@2

parent 8a83c093
Pipeline #98211854 passed with stages
in 9 minutes and 17 seconds
......@@ -18,18 +18,21 @@ exports[`should generate configuration for angularjs 1`] = `
exports[`should generate configuration for combined 1`] = `
"{
\\"elements\\": [
\\"html5\\",
\\"html-validate-vue/elements\\"
\\"html5\\"
],
\\"extends\\": [
\\"htmlvalidate:recommended\\"
\\"htmlvalidate:recommended\\",
\\"html-valudate-vue:recommended\\"
],
\\"transform\\": {
\\"^.*\\\\\\\\.js$\\": \\"html-validate-angular/js\\",
\\"^.*\\\\\\\\.html$\\": \\"html-validate-angular/html\\",
\\"^.*\\\\\\\\.vue$\\": \\"html-validate-vue\\",
\\"^.*\\\\\\\\.md$\\": \\"html-validate-markdown\\"
}
},
\\"plugins\\": [
\\"html-validate-vue\\"
]
}"
`;
......@@ -61,11 +64,14 @@ exports[`should generate configuration for markdown 1`] = `
exports[`should generate configuration for vuejs 1`] = `
"{
\\"elements\\": [
\\"html5\\",
\\"html-validate-vue/elements\\"
\\"html5\\"
],
\\"extends\\": [
\\"htmlvalidate:recommended\\"
\\"htmlvalidate:recommended\\",
\\"html-valudate-vue:recommended\\"
],
\\"plugins\\": [
\\"html-validate-vue\\"
],
\\"transform\\": {
\\"^.*\\\\\\\\.vue$\\": \\"html-validate-vue\\"
......
......@@ -21,7 +21,8 @@ const frameworkConfig: Record<string, ConfigData> = {
},
},
[Frameworks.vuejs]: {
elements: ["html-validate-vue/elements"],
plugins: ["html-validate-vue"],
extends: ["html-valudate-vue:recommended"],
transform: {
"^.*\\.vue$": "html-validate-vue",
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment