46 lines
867 B
JavaScript
46 lines
867 B
JavaScript
module.exports = {
|
|
root: true,
|
|
|
|
env: {
|
|
browser: true,
|
|
node: true,
|
|
es6: true,
|
|
},
|
|
|
|
extends: [
|
|
"eslint:recommended",
|
|
"plugin:vue/vue3-recommended",
|
|
"@vue/typescript",
|
|
"@vue/prettier",
|
|
],
|
|
|
|
parserOptions: {
|
|
parser: "@typescript-eslint/parser",
|
|
ecmaVersion: 2020,
|
|
sourceType: "module",
|
|
},
|
|
|
|
rules: {
|
|
// Relax console/debugger in development
|
|
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
|
|
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
|
|
},
|
|
|
|
ignorePatterns: [
|
|
"node_modules/",
|
|
"dist/",
|
|
"public/*.min.js",
|
|
"public/**/*.min.js",
|
|
],
|
|
|
|
// Disable base no-unused-vars in .vue files to avoid false positives with <script setup>
|
|
overrides: [
|
|
{
|
|
files: ["*.vue"],
|
|
rules: {
|
|
"no-unused-vars": "off",
|
|
},
|
|
},
|
|
],
|
|
};
|