Skip to content

Commit 334ebbf

Browse files
authored
chore(deps): update (#400)
* chore(deps): update all minor * chore(deps): upgrade prettier & eslint * refactor: reformat code * chore(deps): pin `@intlify/*` beta dependencies * chore(deps): revert breaking upgrades
1 parent 8e0ec06 commit 334ebbf

File tree

3 files changed

+516
-510
lines changed

3 files changed

+516
-510
lines changed

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

+24-24
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<div class="eslint-code-container">
33
<eslint-editor
44
ref="editor"
5+
v-model="code"
56
:linter="linter"
67
:config="config"
7-
v-model="code"
88
:style="{ height }"
99
class="eslint-code-block"
1010
:filename="'/path/' + resplvedFilename"
@@ -72,14 +72,6 @@ export default {
7272
}
7373
},
7474
75-
watch: {
76-
code(newCode) {
77-
if (this.$resourceGroup) {
78-
this.$resourceGroup.set(this.resplvedFilename, newCode)
79-
}
80-
}
81-
},
82-
8375
computed: {
8476
isResource() {
8577
return this.language === 'json' || this.language === 'yaml'
@@ -160,22 +152,11 @@ export default {
160152
}
161153
},
162154
163-
methods: {
164-
computeCodeFromSlot(nodes) {
165-
if (!Array.isArray(nodes)) {
166-
return ''
155+
watch: {
156+
code(newCode) {
157+
if (this.$resourceGroup) {
158+
this.$resourceGroup.set(this.resplvedFilename, newCode)
167159
}
168-
return nodes
169-
.map(node => node.text || this.computeCodeFromSlot(node.children))
170-
.join('')
171-
},
172-
verifyHook() {
173-
setFileContents(
174-
this.$resourceGroup ? this.$resourceGroup.getFileContents() : {}
175-
)
176-
},
177-
lint() {
178-
this.$refs.editor.lint()
179160
}
180161
},
181162
@@ -221,6 +202,25 @@ export default {
221202
verifyHook()
222203
return verifyAndFix.apply(this, args)
223204
}
205+
},
206+
207+
methods: {
208+
computeCodeFromSlot(nodes) {
209+
if (!Array.isArray(nodes)) {
210+
return ''
211+
}
212+
return nodes
213+
.map(node => node.text || this.computeCodeFromSlot(node.children))
214+
.join('')
215+
},
216+
verifyHook() {
217+
setFileContents(
218+
this.$resourceGroup ? this.$resourceGroup.getFileContents() : {}
219+
)
220+
},
221+
lint() {
222+
this.$refs.editor.lint()
223+
}
224224
}
225225
}
226226
</script>

package.json

+14-14
Original file line numberDiff line numberDiff line change
@@ -56,43 +56,43 @@
5656
"new": "ts-node ./scripts/new-rule.ts"
5757
},
5858
"dependencies": {
59-
"@eslint/eslintrc": "^2.0.3",
60-
"@intlify/core-base": "^9.3.0-beta.19",
61-
"@intlify/message-compiler": "^9.3.0-beta.19",
59+
"@eslint/eslintrc": "^2.1.0",
60+
"@intlify/core-base": "9.3.0-beta.19",
61+
"@intlify/message-compiler": "9.3.0-beta.19",
6262
"debug": "^4.3.4",
63-
"glob": "^10.2.6",
63+
"glob": "^10.3.3",
6464
"ignore": "^5.2.4",
6565
"is-language-code": "^3.1.0",
6666
"js-yaml": "^4.1.0",
6767
"json5": "^2.2.3",
6868
"jsonc-eslint-parser": "^2.3.0",
6969
"lodash": "^4.17.21",
7070
"parse5": "^7.1.2",
71-
"semver": "^7.5.1",
72-
"vue-eslint-parser": "^9.3.0",
71+
"semver": "^7.5.4",
72+
"vue-eslint-parser": "^9.3.1",
7373
"yaml-eslint-parser": "^1.2.2"
7474
},
7575
"devDependencies": {
7676
"@types/debug": "^4.1.8",
77-
"@types/eslint": "^8.40.0",
77+
"@types/eslint": "^8.44.0",
7878
"@types/eslint-scope": "^3.7.4",
7979
"@types/glob": "^8.1.0",
8080
"@types/js-yaml": "^4.0.5",
8181
"@types/json-schema": "^7.0.12",
8282
"@types/lodash": "^4.14.195",
8383
"@types/mocha": "^10.0.1",
84-
"@types/node": "^20.2.5",
84+
"@types/node": "^20.4.1",
8585
"@types/prettier": "^2.7.3",
8686
"@types/semver": "^7.5.0",
87-
"@typescript-eslint/eslint-plugin": "^5.59.8",
88-
"@typescript-eslint/parser": "^5.59.8",
87+
"@typescript-eslint/eslint-plugin": "^6.0.0",
88+
"@typescript-eslint/parser": "^6.0.0",
8989
"entities": "^4.5.0",
9090
"esbuild-register": "^3.4.2",
91-
"eslint": "^8.41.0",
91+
"eslint": "^8.44.0",
9292
"eslint-config-prettier": "^8.8.0",
9393
"eslint-plugin-markdown": "^3.0.0",
9494
"eslint-plugin-prettier": "^4.2.1",
95-
"eslint-plugin-vue": "^9.14.1",
95+
"eslint-plugin-vue": "^9.15.1",
9696
"eslint4b": "^7.32.0",
9797
"esquery": "^1.5.0",
9898
"import-fresh": "^3.3.0",
@@ -102,12 +102,12 @@
102102
"monaco-editor": "^0.40.0",
103103
"nyc": "^15.1.0",
104104
"opener": "^1.5.2",
105-
"path-scurry": "^1.9.2",
105+
"path-scurry": "^1.10.1",
106106
"prettier": "^2.8.8",
107107
"rimraf": "^5.0.1",
108108
"shipjs": "^0.26.3",
109109
"ts-node": "^10.9.1",
110-
"typescript": "^5.0.4",
110+
"typescript": "^5.1.6",
111111
"vitepress": "1.0.0-beta.5",
112112
"vue-eslint-editor": "^1.1.0",
113113
"vue-github-button": "^3.1.0"

0 commit comments

Comments
 (0)