Created
May 20, 2021 11:08
-
-
Save claudiodekker/1abdc5504108e7c9db1fa4c49d96950e to your computer and use it in GitHub Desktop.
ESLint Code Style for Vue.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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