vue-storefront
Version:
A Vue.js, PWA eCommerce frontend
33 lines (32 loc) • 956 B
JavaScript
module.exports = {
root: true,
env: { 'browser': true },
parser: "vue-eslint-parser",
parserOptions: {
sourceType: "module",
},
// https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
extends: [
'plugin:vue/recommended', 'standard'
],
plugins: [
'vue'
],
// add your custom rules here
rules: {
/* max attributes-per-line and order-in-components
** we should use this later, when eslint-plugin-vue will support auto fixing this
*/
'vue/max-attributes-per-line': 0,
'vue/order-in-components': 0,
'vue/attributes-order': 0,
// less restricted v-for -> v-if rules
'vue/no-confusing-v-for-v-if': 0,
// allow paren-less arrow functions
'arrow-parens': 0,
// allow async-await
'generator-star-spacing': 0,
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0
}
}