go-view/.eslintrc.js

25 lines
519 B
JavaScript
Raw Normal View History

2021-12-10 14:11:49 +08:00
module.exports = {
root: true,
parser: 'vue-eslint-parser',
globals: {
postMessage: true
2021-12-10 14:11:49 +08:00
},
parserOptions: {
parser: '@typescript-eslint/parser',
sourceType: 'module',
ecmaFeatures: {
jsx: true,
tsx: true,
},
},
env: {
node: true,
2021-12-10 14:11:49 +08:00
},
extends: ["plugin:vue/vue3-essential", "eslint:recommended"],
2021-12-10 14:11:49 +08:00
rules: {
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
},
};