A personal Codepen setup in Vue. Idea by this post.
For development, we recommend :
npm install
Installs all of the specified packages of your project.
npm run serve
This should redirect you to http://localhost:8080 for your application.
npm run build
You can deploy the built content in the dist/
directory to any static file server.
Run the Setup VS Code
and Setup ESLint
from the recommended settings in Vue.js extension pack documentation into your Workspace settings :
- Enable FormatOnSave & Eslint for .vue files
"editor.formatOnSave": true,
"eslint.validate": [
"javascript",
"javascriptreact",
"vue"
]
- Configure ESLint
Create/update eslint config file (.eslintrc.js or .eslintrc.json) in your project folder, then fill it with :
module.exports = {
plugins: ['vue'], // enable vue plugin
extends: ['plugin:vue/essential', 'prettier'], // activate vue related rules
}