Skip to content

Instantly share code, notes, and snippets.

@jay7793
Created October 10, 2018 09:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jay7793/3c29dd02cb329900fda39e0865561f6d to your computer and use it in GitHub Desktop.
Save jay7793/3c29dd02cb329900fda39e0865561f6d to your computer and use it in GitHub Desktop.
ESLint config normal Vue.js application
module.exports = {
root: true,
env: {
browser: true,
node: true
},
parserOptions: {
parser: 'babel-eslint'
},
extends: [
"plugin:vue/recommended",
"plugin:prettier/recommended"
],
// required to lint *.vue files
plugins: [
'vue'
],
// add your custom rules here
rules: {
"semi": [2, "never"],
"no-console": "off",
"vue/max-attributes-per-line": "off",
"vue/require-default-prop": "off",
"prettier/prettier": ["error", { "semi": false, singleQuote: true }]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment