Skip to content

Commit

Permalink
chore(deps): update (#400)
Browse files Browse the repository at this point in the history
* chore(deps): update all minor

* chore(deps): upgrade prettier & eslint

* refactor: reformat code

* chore(deps): pin `@intlify/*` beta dependencies

* chore(deps): revert breaking upgrades
  • Loading branch information
dargmuesli committed Jul 21, 2023
1 parent 8e0ec06 commit 334ebbf
Show file tree
Hide file tree
Showing 3 changed files with 516 additions and 510 deletions.
48 changes: 24 additions & 24 deletions docs/.vitepress/components/eslint-code-block.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<div class="eslint-code-container">
<eslint-editor
ref="editor"
v-model="code"
:linter="linter"
:config="config"
v-model="code"
:style="{ height }"
class="eslint-code-block"
:filename="'/path/' + resplvedFilename"
Expand Down Expand Up @@ -72,14 +72,6 @@ export default {
}
},
watch: {
code(newCode) {
if (this.$resourceGroup) {
this.$resourceGroup.set(this.resplvedFilename, newCode)
}
}
},
computed: {
isResource() {
return this.language === 'json' || this.language === 'yaml'
Expand Down Expand Up @@ -160,22 +152,11 @@ export default {
}
},
methods: {
computeCodeFromSlot(nodes) {
if (!Array.isArray(nodes)) {
return ''
watch: {
code(newCode) {
if (this.$resourceGroup) {
this.$resourceGroup.set(this.resplvedFilename, newCode)
}
return nodes
.map(node => node.text || this.computeCodeFromSlot(node.children))
.join('')
},
verifyHook() {
setFileContents(
this.$resourceGroup ? this.$resourceGroup.getFileContents() : {}
)
},
lint() {
this.$refs.editor.lint()
}
},
Expand Down Expand Up @@ -221,6 +202,25 @@ export default {
verifyHook()
return verifyAndFix.apply(this, args)
}
},
methods: {
computeCodeFromSlot(nodes) {
if (!Array.isArray(nodes)) {
return ''
}
return nodes
.map(node => node.text || this.computeCodeFromSlot(node.children))
.join('')
},
verifyHook() {
setFileContents(
this.$resourceGroup ? this.$resourceGroup.getFileContents() : {}
)
},
lint() {
this.$refs.editor.lint()
}
}
}
</script>
Expand Down
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,43 +56,43 @@
"new": "ts-node ./scripts/new-rule.ts"
},
"dependencies": {
"@eslint/eslintrc": "^2.0.3",
"@intlify/core-base": "^9.3.0-beta.19",
"@intlify/message-compiler": "^9.3.0-beta.19",
"@eslint/eslintrc": "^2.1.0",
"@intlify/core-base": "9.3.0-beta.19",
"@intlify/message-compiler": "9.3.0-beta.19",
"debug": "^4.3.4",
"glob": "^10.2.6",
"glob": "^10.3.3",
"ignore": "^5.2.4",
"is-language-code": "^3.1.0",
"js-yaml": "^4.1.0",
"json5": "^2.2.3",
"jsonc-eslint-parser": "^2.3.0",
"lodash": "^4.17.21",
"parse5": "^7.1.2",
"semver": "^7.5.1",
"vue-eslint-parser": "^9.3.0",
"semver": "^7.5.4",
"vue-eslint-parser": "^9.3.1",
"yaml-eslint-parser": "^1.2.2"
},
"devDependencies": {
"@types/debug": "^4.1.8",
"@types/eslint": "^8.40.0",
"@types/eslint": "^8.44.0",
"@types/eslint-scope": "^3.7.4",
"@types/glob": "^8.1.0",
"@types/js-yaml": "^4.0.5",
"@types/json-schema": "^7.0.12",
"@types/lodash": "^4.14.195",
"@types/mocha": "^10.0.1",
"@types/node": "^20.2.5",
"@types/node": "^20.4.1",
"@types/prettier": "^2.7.3",
"@types/semver": "^7.5.0",
"@typescript-eslint/eslint-plugin": "^5.59.8",
"@typescript-eslint/parser": "^5.59.8",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"entities": "^4.5.0",
"esbuild-register": "^3.4.2",
"eslint": "^8.41.0",
"eslint": "^8.44.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-markdown": "^3.0.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-vue": "^9.14.1",
"eslint-plugin-vue": "^9.15.1",
"eslint4b": "^7.32.0",
"esquery": "^1.5.0",
"import-fresh": "^3.3.0",
Expand All @@ -102,12 +102,12 @@
"monaco-editor": "^0.40.0",
"nyc": "^15.1.0",
"opener": "^1.5.2",
"path-scurry": "^1.9.2",
"path-scurry": "^1.10.1",
"prettier": "^2.8.8",
"rimraf": "^5.0.1",
"shipjs": "^0.26.3",
"ts-node": "^10.9.1",
"typescript": "^5.0.4",
"typescript": "^5.1.6",
"vitepress": "1.0.0-beta.5",
"vue-eslint-editor": "^1.1.0",
"vue-github-button": "^3.1.0"
Expand Down
Loading

0 comments on commit 334ebbf

Please sign in to comment.