8000 Add processors · vuejs/eslint-plugin-vue@8982d6b · GitHub
[go: up one dir, main page]

Skip to content

Commit 8982d6b

Browse files
committed
Add processors
1 parent c88cf5a commit 8982d6b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docs/.vuepress/components/eslint-code-block.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
class="eslint-code-block"
88
filename="example.vue"
99
language="html"
10+
:preprocess="preprocess"
11+
:postprocess="postprocess"
1012
dark
1113
fix
1214
/>
@@ -15,7 +17,7 @@
1517
<script>
1618
// https://github.com/vuejs/vuepress/issues/451
1719
import EslintEditor from '../../../node_modules/vue-eslint-editor'
18-
import { rules } from '../../../'
20+
import { rules, processors } from '../../../'
1921
2022
export default {
2123
name: 'ESLintCodeBlock',
@@ -32,7 +34,9 @@ export default {
3234
3335
data () {
3436
return {
35-
linter: null
37+
linter: null,
38+
preprocess: processors['.vue'].preprocess,
39+
postprocess: processors['.vue'].postprocess
3640
}
3741
},
3842

0 commit comments

Comments
 (0)
0