Skip to content

Commit 01c972f

Browse files
committed
Update demo site
1 parent e6d952f commit 01c972f

File tree

17 files changed

+2351
-2227
lines changed

17 files changed

+2351
-2227
lines changed

docs/.vuepress/components/components/EslintPluginEditor.vue

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
<script>
2121
import EslintEditor from "vue-eslint-editor"
22+
import { Linter } from "eslint/lib/linter"
2223
import plugin from "../../../.."
2324
import pluginVue from "eslint-plugin-vue"
2425
@@ -49,7 +50,6 @@ export default {
4950
5051
data() {
5152
return {
52-
eslint4b: null,
5353
format: {
5454
insertSpaces: true,
5555
tabSize: 2,
@@ -89,7 +89,8 @@ export default {
8989
parser: "vue-eslint-parser",
9090
parserOptions: {
9191
sourceType: "module",
92-
ecmaVersion: 2019,
92+
ecmaVersion: 2022,
93+
ecmaFeatures: { jsx: true },
9394
},
9495
}
9596
},
@@ -106,11 +107,6 @@ export default {
106107
return pluginVue.processors[".vue"].postprocess
107108
},
108109
linter() {
109-
if (!this.eslint4b) {
110-
return null
111-
}
112-
const Linter = this.eslint4b
113-
114110
const linter = new Linter()
115111
116112
for (const k of Object.keys(plugin.rules)) {
@@ -138,11 +134,7 @@ export default {
138134
},
139135
},
140136
141-
async mounted() {
142-
// Load linter asynchronously.
143-
const { default: eslint4b } = await import("eslint4b")
144-
this.eslint4b = eslint4b
145-
137+
mounted() {
146138
const editor = this.$refs.editor
147139
148140
editor.$watch("monaco", () => {

docs/.vuepress/components/components/PgEditor.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,3 @@ export default {
3232
},
3333
}
3434
</script>
35-
36-
<style scoped></style>

0 commit comments

Comments
 (0)