50 lines
1 KiB
JavaScript
50 lines
1 KiB
JavaScript
module.exports = {
|
|
root: true,
|
|
env: {
|
|
node: true,
|
|
},
|
|
extends: [
|
|
"plugin:vue/vue3-essential",
|
|
"@vue/standard",
|
|
"@vue/typescript/recommended",
|
|
],
|
|
parserOptions: {
|
|
ecmaVersion: 2020,
|
|
},
|
|
rules: {
|
|
quotes: [
|
|
"error",
|
|
"double",
|
|
{
|
|
avoidEscape: true,
|
|
},
|
|
],
|
|
camelcase: "off",
|
|
"comma-dangle": [
|
|
"error",
|
|
"always-multiline",
|
|
],
|
|
"space-before-function-paren": ["error", {
|
|
anonymous: "always",
|
|
named: "never",
|
|
}],
|
|
"padded-blocks": ["error", {
|
|
classes: "always",
|
|
}],
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
|
|
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
|
|
},
|
|
overrides: [
|
|
{
|
|
files: [
|
|
"**/__tests__/*.{j,t}s?(x)",
|
|
"**/tests/unit/**/*.spec.{j,t}s?(x)",
|
|
],
|
|
env: {
|
|
mocha: true,
|
|
},
|
|
},
|
|
],
|
|
}
|