Created
May 10, 2019 18:19
-
-
Save LukeWJensen/b0b427a95c6254a86599d43de30dfc5b to your computer and use it in GitHub Desktop.
[ESLint rules for Vue.js projects] #vue #eslint
This file contains hidden or 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
"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