From a3bd62846d3cc9acb52168b515a1882dad871f6a Mon Sep 17 00:00:00 2001 From: lin onetwo Date: Fri, 19 May 2023 11:06:29 +0800 Subject: [PATCH] fix: dprint conflict --- .eslintrc.js | 4 +++- dprint.json | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index bbc0a4398..15044566b 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -110,6 +110,8 @@ module.exports = { useDprintJson: true, }, ], + // conflict with dprint-integration/dprint, will make some line disappear, and some line duplicated + '@typescript-eslint/consistent-type-imports': 'off', }, extends: [ 'eslint:recommended', @@ -141,7 +143,7 @@ module.exports = { 'react-hooks', 'security', 'security-node', - 'autofix', + // 'autofix', 'unused-imports', ], env: { diff --git a/dprint.json b/dprint.json index 2aefd29b3..712898886 100644 --- a/dprint.json +++ b/dprint.json @@ -1,5 +1,5 @@ { - "lineWidth": 160, + "lineWidth": 180, "typescript": { "quoteProps": "asNeeded", "quoteStyle": "preferSingle", @@ -15,8 +15,8 @@ ], "excludes": ["**/node_modules", "**/*-lock.json"], "plugins": [ - "https://plugins.dprint.dev/typescript-0.84.1.wasm", - "https://plugins.dprint.dev/json-0.17.1.wasm", + "https://plugins.dprint.dev/typescript-0.84.4.wasm", + "https://plugins.dprint.dev/json-0.17.2.wasm", "https://plugins.dprint.dev/markdown-0.15.2.wasm" ] }