Skip to content

Commit

Permalink
保存時にフォーマット実行するように設定 & 既存ファイルのフォーマット実行
Browse files Browse the repository at this point in the history
  • Loading branch information
bass559 committed Jan 29, 2022
1 parent 6564d5d commit 7869090
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
2 changes: 2 additions & 0 deletions .vscode/settings.json
@@ -1,4 +1,6 @@
{
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
Expand Down
10 changes: 5 additions & 5 deletions src/App.vue
@@ -1,17 +1,17 @@
<template>
<img alt="Vue logo" src="./assets/logo.png">
<HelloWorld msg="Welcome to Your Vue.js App"/>
<img alt="Vue logo" src="./assets/logo.png" />
<HelloWorld msg="Welcome to Your Vue.js App" />
</template>

<script>
import HelloWorld from './components/HelloWorld.vue'
import HelloWorld from "./components/HelloWorld.vue";
export default {
name: 'App',
name: "App",
components: {
HelloWorld
}
}
};
</script>

<style>
Expand Down
6 changes: 3 additions & 3 deletions src/components/HelloWorld.vue
Expand Up @@ -2,7 +2,7 @@
<div class="hello">
<h1>{{ msg }}</h1>
<p>
For a guide and recipes on how to configure / customize this project,<br>
For a guide and recipes on how to configure / customize this project,<br />
check out the
<a href="https://cli.vuejs.org" target="_blank" rel="noopener">vue-cli documentation</a>.
</p>
Expand Down Expand Up @@ -32,11 +32,11 @@

<script>
export default {
name: 'HelloWorld',
name: "HelloWorld",
props: {
msg: String
}
}
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
Expand Down
6 changes: 3 additions & 3 deletions src/main.js
@@ -1,4 +1,4 @@
import { createApp } from 'vue'
import App from './App.vue'
import { createApp } from "vue";
import App from "./App.vue";

createApp(App).mount('#app')
createApp(App).mount("#app");

0 comments on commit 7869090

Please sign in to comment.