From 7d5d5110033d2a01939f2c8e5bac31ecd49c0c19 Mon Sep 17 00:00:00 2001 From: liuyi Date: Sun, 11 May 2025 12:59:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0Eslint=E4=B8=8EPrettier?= =?UTF-8?q?=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index 315b25f..eac5ab4 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -11,7 +11,13 @@ module.exports = { node: true, jest: true, }, - plugins: ['@typescript-eslint', 'jest', 'prettier', 'import', 'unused-imports'], + plugins: [ + '@typescript-eslint', + 'jest', + 'prettier', + 'import', + 'unused-imports', + ], extends: [ // airbnb规范 // https://github.com/airbnb/javascript/tree/master/packages/eslint-config-airbnb @@ -128,6 +134,8 @@ module.exports = { '@typescript-eslint/no-unsafe-call': 0, '@typescript-eslint/no-unsafe-argument': 0, '@typescript-eslint/ban-ts-comment': 0, + '@typescript-eslint/lines-between-class-members': 0, + '@typescript-eslint/no-throw-literal': 0, }, settings: {