wiki.techinc.nl/tests/phpunit/data/resourceloader/vue-component.vue
Ed Sanders 9fe2995989 build: Update eslint-config-wikimedia to 0.21.0
* Replace `substr`/`substring` with `slice`. The second argument
  to `substring` is length, not end index as in `substr`/`slice`,
  so convert where necessary.
* Replace `new Date().getTime()` with `Date.now()`
* Documentation fixes
* Replace `throw Error` with `throw new Error`

Change-Id: I532500ea4c99d8ebec01efb21273c8df21626e59
2021-11-09 21:08:55 +00:00

35 lines
421 B
Vue

<template>
<!-- Outer comment -->
<div class="mw-vue-test">
<!--
Inner comment
with multiple lines
and tabs
-->
<p>Hello\n</p>
<p>{{ hello }}</p>
<pre>
foo\
bar
</pre>
</div>
</template>
<script>
// @vue/component
module.exports = {
data: function () {
return {
hello: 'world'
};
}
};
</script>
<style lang="less">
.mw-vue-test {
&:hover {
background-color: red;
}
}
</style>