module.exports = {
root: true,
env: {
mocha: true,
es6: true,
node: true,
browser: true
},
parserOptions: {
parser: "babel-eslint",
ecmaVersion: 2020,
},
extends: [
"eslint:recommended",
"standard",
"plugin:vue/recommended",
"plugin:vue-libs/recommended",
require.resolve("eslint-config-prettier"),
require.resolve("eslint-config-prettier/vue"),
],
plugins: ["prettier"],
rules: {
"vue/html-indent": 0,
"prettier/prettier": 1,
"no-unused-vars": 1,
"no-console": !isDev
? [
2,
{
allow: ["warn", "error"],
},
]
: [
1,
{
allow: ["warn", "error"],
},
],
"no-debugger": !isDev ? 2 : 1,
"prefer-const": 2,
// vue-libs
"vue-libs/jsx-uses-vars": 2,
// fix prettier conflict
"standard/computed-property-even-spacing": 0,
"standard/array-bracket-even-spacing": 0,
"standard/object-curly-even-spacing": 0,
// ?? discussion
"standard/no-callback-literal": 0,
// off useful
"vue/no-v-html": 0,
},
};