From 16800794a291a8cae2fac9f3c115be4d102b47a0 Mon Sep 17 00:00:00 2001 From: snowgitea Date: Wed, 29 Apr 2026 10:53:20 +0800 Subject: [PATCH] chore: add frontend/.eslintrc.js --- frontend/.eslintrc.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 frontend/.eslintrc.js diff --git a/frontend/.eslintrc.js b/frontend/.eslintrc.js new file mode 100644 index 0000000..39870ac --- /dev/null +++ b/frontend/.eslintrc.js @@ -0,0 +1,19 @@ +// ESLint 配置 +// 由于Vite已经配置了TypeScript,此文件主要用于基本代码规范检查 +module.exports = { + env: { + browser: true, + es2021: true, + node: true, + }, + extends: ['eslint:recommended'], + parserOptions: { + ecmaVersion: 'latest', + sourceType: 'module', + }, + rules: { + 'no-unused-vars': 'warn', + 'no-console': 'off', + 'no-debugger': 'warn', + }, +};