Skip to content

Instantly share code, notes, and snippets.

@yakubenko
Created January 11, 2019 06:01
Show Gist options
  • Save yakubenko/ee5ea6a9384a49854a498508b3c76b66 to your computer and use it in GitHub Desktop.
Save yakubenko/ee5ea6a9384a49854a498508b3c76b66 to your computer and use it in GitHub Desktop.
ESLint config
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"parserOptions": {
"parser": "babel-eslint"
},
"extends": [
"airbnb-base",
"plugin:vue/recommended"
],
"rules": {
"indent": [2, 4, {"SwitchCase": 1}],
"vue/html-indent": [2,4],
"vue/max-attributes-per-line": 4,
"vue/component-name-in-template-casing": ["warn", "kebab-case"],
"vue/html-closing-bracket-newline": "off",
"no-console":"off",
"comma-dangle":"off",
"max-len":["warn", 150],
"no-new":"off",
"no-param-reassign":"off",
"object-shorthand":"off",
"func-names":"off"
},
"globals": {
"Vue": false,
"Vuex": false,
"VueRouter": false,
"VueI18n": false,
"messages": false,
"$": false,
"jQuery": false
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment