From 38105982c06106da1c741962b03e9596939ec4e1 Mon Sep 17 00:00:00 2001 From: Dunqing Date: Tue, 13 Jun 2023 12:00:39 +0800 Subject: [PATCH] chore: update eslint configuration to avoid lint errors in json files (#42895) --- .eslintrc.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.eslintrc.js b/.eslintrc.js index 5e01410968..25d5d9f7f1 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -119,6 +119,13 @@ module.exports = { 'react/no-danger': 0, }, }, + { + files: ['**/*.json'], + rules: { + 'no-unused-expressions': 0, + 'comma-dangle': 0, + }, + }, ], rules: { 'react/jsx-one-expression-per-line': 0,