Skip to content

Instantly share code, notes, and snippets.

@LukeWJensen
Created May 10, 2019 18:19
Show Gist options
  • Save LukeWJensen/b0b427a95c6254a86599d43de30dfc5b to your computer and use it in GitHub Desktop.
Save LukeWJensen/b0b427a95c6254a86599d43de30dfc5b to your computer and use it in GitHub Desktop.
[ESLint rules for Vue.js projects] #vue #eslint
"extends": [
"plugin:vue/recommended"
],
"rules": {
"indent": "off", //delegate this to editorconfig instead
"vue/html-indent": [
"error",
4
],
"vue/max-attributes-per-line": [
2,
{
"singleline": 2
}
],
"vue/html-closing-bracket-newline": [
"error",
{
"singleline": "never",
"multiline": "always"
}
],
"vue/html-closing-bracket-spacing": ["error", {
"startTag": "never",
"endTag": "never",
"selfClosingTag": "never"
}],
"vue/name-property-casing": [
"error",
"PascalCase"
],
"vue/prop-name-casing": [
"error",
"camelCase"
],
"vue/require-default-prop": [
"off"
],
"vue/no-v-html": [
"off"
],
"vue/script-indent": ["warn", 4, {
"baseIndent": 1
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment