8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c88cf5a commit 8982d6bCopy full SHA for 8982d6b
docs/.vuepress/components/eslint-code-block.vue
@@ -7,6 +7,8 @@
7
class="eslint-code-block"
8
filename="example.vue"
9
language="html"
10
+ :preprocess="preprocess"
11
+ :postprocess="postprocess"
12
dark
13
fix
14
/>
@@ -15,7 +17,7 @@
15
17
<script>
16
18
// https://github.com/vuejs/vuepress/issues/451
19
import EslintEditor from '../../../node_modules/vue-eslint-editor'
-import { rules } from '../../../'
20
+import { rules, processors } from '../../../'
21
22
export default {
23
name: 'ESLintCodeBlock',
@@ -32,7 +34,9 @@ export default {
32
34
33
35
data () {
36
return {
- linter: null
37
+ linter: null,
38
+ preprocess: processors['.vue'].preprocess,
39
+ postprocess: processors['.vue'].postprocess
40
}
41
},
42
0 commit comments