Skip to content

Commit

Permalink
Apply Prettier rule: trailing comma
Browse files Browse the repository at this point in the history
  • Loading branch information
guansss committed Feb 20, 2019
1 parent ca5a2c7 commit 54dee14
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
presets: ['@vue/app']
presets: ['@vue/app'],
};
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@
"prettier": {
"printWidth": 120,
"tabWidth": 4,
"singleQuote": true
"singleQuote": true,
"trailingComma": "all"
},
"postcss": {
"plugins": {
Expand Down
4 changes: 2 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import 'pixi-live2d/src';
export default {
name: 'app',
components: {
Settings
Settings,
},
async mounted() {
const modelJson = 'live2d/neptune/normal.model.json';
Expand All @@ -37,7 +37,7 @@ export default {
}
animate();
}
},
};
</script>
<style lang="stylus">
Expand Down
2 changes: 1 addition & 1 deletion src/components/Settings/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<script>
export default {
name: 'Settings'
name: 'Settings',
};
</script>

Expand Down
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ import App from './App.vue';
Vue.config.productionTip = false;

new Vue({
render: h => h(App)
render: h => h(App),
}).$mount('#app');
10 changes: 5 additions & 5 deletions vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ module.exports = {
resolve: {
alias: {
'pixi-live2d': path.resolve('pixi-live2d'),
PIXI: 'pixi.js'
}
}
PIXI: 'pixi.js',
},
},
},
devServer: {
contentBase: path.resolve('wallpaper'),
historyApiFallback: false
}
historyApiFallback: false,
},
};

0 comments on commit 54dee14

Please sign in to comment.