vue_cart/.eslintrc.js

32 lines
861 B
JavaScript
Raw Normal View History

// https://eslint.org/docs/user-guide/configuring
2022-06-20 11:31:05 +08:00
module.exports = {
extends: [
'eslint:recommended',
"plugin:vue/vue3-recommended",
"prettier"
],
// required to lint *.vue files
plugins: [
'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',
'no-labels': ['warn', {'allowLoop': true}],
'no-unused-vars': 'off',
'vue/no-mutating-props': 'off',
'vue/require-default-prop': 'off',
'vue/no-unused-vars': 'off',
'vue/prop-name-casing': 'off',
'vue/attribute-hyphenation': 'off',
'vue/no-template-shadow': 'off',
'vue/component-definition-name-casing': 'off'
},
parserOptions: {
parser: "@babel/eslint-parser",
},
}