.prettierrc.json
{
"trailingComma": "none",
"tabWidth": 2,
"semi": false,
"singleQuote": true
}
.jshintrc
{
"esversion": 6
}
.eslintrc.js
module.exports = {
root: true,
env: {
node: true,
es6: true,
},
extends: [
'plugin:vue/essential',
'@vue/standard'
],
parserOptions: {
ecmaVersion: 2019,
parser: 'babel-eslint'
},
rules: {
'linebreak-style': 0,
'jsx-quotes': [2, 'prefer-single'],
'quotes': [1, 'single', {
'avoidEscape': true
}],
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off'
}
}
.editorconfig
[*.{js,jsx,ts,tsx,vue}]
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
insert_final_newline = true
quote_type = single
Ctrl+Shift+P : workspace.settings (json)
{
"eslint.validate": [
"html",
"vue",
"javascript",
"typescript",
"javascriptreact",
"typescriptreact"
],
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"vetur.format.defaultFormatter.js": "prettier",
"prettier.trailingComma": "none",
"prettier.jsxSingleQuote": true,
"prettier.singleQuote": true,
"vetur.format.defaultFormatterOptions": {
"prettier": {
"singleQuote": true
}
}
}