Skip to content

Instantly share code, notes, and snippets.

@claudiodekker
Created May 20, 2021 11:08
Show Gist options
  • Save claudiodekker/1abdc5504108e7c9db1fa4c49d96950e to your computer and use it in GitHub Desktop.
Save claudiodekker/1abdc5504108e7c9db1fa4c49d96950e to your computer and use it in GitHub Desktop.
ESLint Code Style for Vue.js
module.exports = {
extends: ['eslint:recommended', 'plugin:vue/recommended'],
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
},
env: {
amd: true,
browser: true,
es6: true,
},
rules: {
indent: ['error', 2],
quotes: ['warn', 'single'],
semi: ['warn', 'never'],
'no-unused-vars': ['error', { vars: 'all', args: 'after-used', ignoreRestSiblings: true }],
'comma-dangle': ['warn', 'always-multiline'],
'vue/max-attributes-per-line': 'off',
'vue/require-default-prop': 'off',
'vue/singleline-html-element-content-newline': 'off',
'vue/html-self-closing': [
'warn',
{
html: {
void: 'always',
normal: 'always',
component: 'always',
},
},
],
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment