Skip to content

Instantly share code, notes, and snippets.

@kumalee
Last active July 8, 2017 13:32
Show Gist options
  • Select an option

  • Save kumalee/33e4ec8432d5596b9c909c628d70479a to your computer and use it in GitHub Desktop.

Select an option

Save kumalee/33e4ec8432d5596b9c909c628d70479a to your computer and use it in GitHub Desktop.
code formatting config file for vue project
/*
settings.json
This config file is for VS Code
Put the file into your project's root directory
Place your settings in this file to overwrite default and user settings.
Dependent VS Code Plugins:
Beautify
ESLint
Prettier
Vetur
*/
{
"prettier.eslintIntegration": true,
"editor.formatOnSave": true,
"prettier.singleQuote": true,
"prettier.semi": false,
"vetur.format.html.wrap_attributes": "force",
"vetur.format.css.newline_between_rules": true
}
/*
.eslintrc.js
*/
{
"comments": false,
"env": {
"test": {
"presets": [
["env", {
"targets": { "node": 7 }
}],
"stage-0"
],
"plugins": ["istanbul"]
},
"main": {
"presets": [
["env", {
"targets": { "node": 7 }
}],
"stage-0"
]
},
"renderer": {
"presets": [
["env", {
"modules": false
}],
"stage-0"
]
},
"web": {
"presets": [
["env", {
"modules": false
}],
"stage-0"
]
}
},
"plugins": ["transform-runtime"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment