diff --git a/eslint.config.js b/eslint.config.js index 98790f1..93aa92d 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,4 +1,3 @@ -// @ts-check const antfu = require('@antfu/eslint-config').default module.exports = antfu( @@ -10,21 +9,20 @@ module.exports = antfu( 'dist', '/public', '.husky', + 'eslint.config.js', ], }, { rules: { - // 允许使用 debugger 'no-debugger': 'off', 'unused-imports/no-unused-vars': 'off', 'unused-imports/no-unused-imports': 'off', 'jsdoc/require-returns-description': 'off', 'eqeqeq': 'off', - 'no-console': 'off', 'vue/custom-event-name-casing': 'off', 'vue/eqeqeq': 'off', + 'no-console': ['warn', { allow: ['warn', 'error'] }], 'no-restricted-syntax': [ - // eslint-disable-next-line node/prefer-global/process process.env.MODE === 'production' ? 2 : 0, ], 'array-callback-return': ['error', { allowImplicit: true }], diff --git a/src/App.vue b/src/App.vue index edb37dd..fbd8a0c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,17 +1,18 @@