From daa377ffb91ac1686e9b480e66d2f64330483e3b Mon Sep 17 00:00:00 2001 From: binaryify <821374382@qq.com> Date: Sat, 13 Jan 2024 15:07:38 +0800 Subject: [PATCH] =?UTF-8?q?update:=20eslint=20=E9=85=8D=E7=BD=AE=E8=A1=A5?= =?UTF-8?q?=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.eslintrc.js b/.eslintrc.js index 3e60e10..f68af62 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,5 +1,6 @@ module.exports = { root: true, + ignorePatterns: ['public/'], parserOptions: { parser: 'babel-eslint', @@ -14,6 +15,12 @@ module.exports = { }, rules: { + 'prettier/prettier': [ + 'error', + { + endOfLine: 'auto', + }, + ], indent: ['error', 2, { SwitchCase: 1 }], 'space-infix-ops': ['error', { int32Hint: false }], 'key-spacing': [