From 81551b11d00bfb85e8bb41ec5f584719b7ec92d2 Mon Sep 17 00:00:00 2001 From: Kuizuo Date: Tue, 21 Nov 2023 01:40:32 +0800 Subject: [PATCH] chore: lint --- apps/admin/.eslintrc.js | 2 ++ apps/api/.eslintrc.js | 15 ++++++++------- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/apps/admin/.eslintrc.js b/apps/admin/.eslintrc.js index 98fc3ef..8962b73 100644 --- a/apps/admin/.eslintrc.js +++ b/apps/admin/.eslintrc.js @@ -3,5 +3,7 @@ module.exports = { extends: ['@vben'], rules: { 'no-undef': 'off', + '@typescript-eslint/no-unused-vars': 'warn', + 'vue/no-unused-vars': 'warn', }, }; diff --git a/apps/api/.eslintrc.js b/apps/api/.eslintrc.js index f6b834f..654eaf8 100644 --- a/apps/api/.eslintrc.js +++ b/apps/api/.eslintrc.js @@ -4,18 +4,19 @@ module.exports = { sourceType: 'module', tsconfigRootDir: __dirname, }, - root: true, - env: { - node: true, - jest: true, - }, - plugins: ['@typescript-eslint', 'unused-imports'], + plugins: ['@typescript-eslint/eslint-plugin', 'unused-imports'], extends: [ 'eslint:recommended', 'plugin:@typescript-eslint/recommended', - 'prettier', + 'plugin:prettier/recommended', 'plugin:import/recommended', ], + root: true, + env: { + node: true, + jest: true, + }, + ignorePatterns: ['.eslintrc.js'], rules: { // import 'import/named': 'off',