advent22/ui/.eslintrc.js

36 lines
601 B
JavaScript
Raw Permalink Normal View History

2022-10-28 00:14:20 +00:00
module.exports = {
root: true,
2023-01-21 02:59:46 +00:00
2022-10-28 00:14:20 +00:00
env: {
2024-08-23 18:21:32 +00:00
node: true,
2022-10-28 00:14:20 +00:00
},
2023-01-21 02:59:46 +00:00
2024-08-23 18:21:32 +00:00
extends: [
"plugin:vue/vue3-essential",
"eslint:recommended",
"@vue/typescript/recommended",
2022-10-28 00:14:20 +00:00
],
2023-01-21 02:59:46 +00:00
2022-10-28 00:14:20 +00:00
parserOptions: {
2024-08-23 18:21:32 +00:00
ecmaVersion: 2020,
2022-10-28 00:14:20 +00:00
},
2023-01-21 02:59:46 +00:00
2022-10-28 00:14:20 +00:00
rules: {
2024-08-23 18:21:32 +00:00
"no-empty": "off",
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
2023-01-21 02:59:46 +00:00
},
overrides: [
{
files: [
2024-08-23 18:21:32 +00:00
"**/__tests__/*.{j,t}s?(x)",
"**/tests/unit/**/*.spec.{j,t}s?(x)",
2023-01-21 02:59:46 +00:00
],
env: {
2024-08-23 18:21:32 +00:00
mocha: true,
},
},
],
};