Skip to content

Instantly share code, notes, and snippets.

@ChangJoo-Park
Created December 3, 2017 12:28
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 ChangJoo-Park/b31b1bdc60ea73147a73a2cb2d006b1a to your computer and use it in GitHub Desktop.
Save ChangJoo-Park/b31b1bdc60ea73147a73a2cb2d006b1a to your computer and use it in GitHub Desktop.
Vue.js webpack template + eslint-plugin-vue
// https://eslint.org/docs/user-guide/configuring
module.exports = {
root: true,
parserOptions: {
parser: "babel-eslint",
sourceType: 'module'
},
env: {
browser: true,
},
// https://github.com/standard/standard/blob/master/docs/RULES-en.md
extends: [
"standard",
"plugin:vue/recommended"
],
plugins: [
"html",
"standard",
"vue"
],
// add your custom rules here
rules: {
// allow async-await
'generator-star-spacing': 'off',
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment