Skip to content

Instantly share code, notes, and snippets.

@marcnewton
Last active January 4, 2021 13:17
Show Gist options
  • Save marcnewton/3c0ef6cf10972ed04390e2012148f609 to your computer and use it in GitHub Desktop.
Save marcnewton/3c0ef6cf10972ed04390e2012148f609 to your computer and use it in GitHub Desktop.
ESLint Vuetify Config
module.exports = {
root: true,
env: {
node: true,
},
extends: [
'plugin:vue/essential',
'@vue/standard',
'vuetify',
],
rules: {
'no-console': 'off',
'no-debugger': 'off',
'vue/attribute-hyphenation': 'warn',
'vue/html-closing-bracket-newline': 'warn',
'vue/html-closing-bracket-spacing': 'warn',
'vue/html-end-tags': 'warn',
'vue/html-indent': 'warn',
'vue/html-quotes': 'warn',
'vue/html-self-closing': 'warn',
'vue/max-attributes-per-line': ['error', {
singleline: 10,
multiline: {
max: 10,
allowFirstLine: true,
},
}],
'vue/multiline-html-element-content-newline': ['warn', {
allowEmptyLines: true,
}],
'vue/mustache-interpolation-spacing': 'warn',
'vue/name-property-casing': 'warn',
'vue/no-multi-spaces': 'warn',
'vue/no-spaces-around-equal-signs-in-attribute': 'warn',
'vue/no-template-shadow': 'warn',
'vue/prop-name-casing': 'warn',
'vue/require-default-prop': 'warn',
'vue/require-prop-types': 'warn',
'vue/singleline-html-element-content-newline': 'warn',
'vue/v-bind-style': 'warn',
'vue/v-on-style': 'warn',
'vue/no-confusing-v-for-v-if': 'warn',
'vue/order-in-components': 'warn',
'vue/this-in-template': 'error',
'vuetify/grid-unknown-attributes': 'error',
'vuetify/no-legacy-grid': 'error',
},
parserOptions: {
parser: 'babel-eslint',
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment