chore: add frontend/.eslintrc.js
This commit is contained in:
@@ -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',
|
||||||
|
},
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user