Fixed an issue where ERD auto-layout should: #6592 (#8167)

- Always generate right-angled links
- Switch port to Left/Right for the best link route.
This commit is contained in:
Aditya Toshniwal
2024-11-22 16:26:50 +05:30
committed by GitHub
parent ec197c68b8
commit 042888f5d7
9 changed files with 53 additions and 22 deletions

View File

@@ -13,6 +13,7 @@ const jest = require('eslint-plugin-jest');
const babel = require('@babel/eslint-plugin');
const babelParser = require('@babel/eslint-parser');
const ts = require('typescript-eslint');
const unusedImports = require('eslint-plugin-unused-imports');
module.exports = [
@@ -63,6 +64,7 @@ module.exports = [
'plugins': {
'react': reactjs,
'@babel': babel,
'unused-imports': unusedImports,
},
'rules': {
'indent': [
@@ -91,7 +93,18 @@ module.exports = [
...reactjs.configs.recommended.rules,
...reactjs.configs['jsx-runtime'].rules,
'react/jsx-uses-react': 'error',
'react/jsx-uses-vars': 'error'
'react/jsx-uses-vars': 'error',
'no-unused-vars': 'off',
'unused-imports/no-unused-imports': 'error',
'unused-imports/no-unused-vars': [
'warn',
{
'vars': 'all',
'varsIgnorePattern': '^_',
'args': 'after-used',
'argsIgnorePattern': '^_',
},
]
},
'settings': {
'react': {