Skip to content

Instantly share code, notes, and snippets.

@jCrip
Last active August 6, 2017 18:42
Show Gist options
  • Save jCrip/61cfc8536c2790136aec8aca40f32b1e to your computer and use it in GitHub Desktop.
Save jCrip/61cfc8536c2790136aec8aca40f32b1e to your computer and use it in GitHub Desktop.
ESLint configuration
{
"env": {
"browser": true,
"es6": true,
"jquery": true
},
"extends": [
"airbnb",
"plugin:vue/recommended",
],
"plugins": ["prettier"],
"parserOptions": {
"parser": "babel-eslint",
"ecmaVersion": 2017,
"sourceType": "module",
},
"rules": {
"indent": [
2,
2
],
"linebreak-style": [
2,
"unix"
],
"quotes": [
2,
"single"
],
"semi": [
2,
"never"
],
"max-len": [2, 120],
"no-unused-vars": 1,
"arrow-body-style": [2, "as-needed"],
"space-before-function-paren": [1, "never"],
"space-in-parens": [1, "always", { "exceptions": ["()", "{}", "[]", "empty"] }],
"vue/v-bind-style": [1, "shorthand"],
"vue/v-on-style": [1, "shorthand"],
"prettier/prettier": [2, { "singleQuote": true }]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment