[KYUUBI #3646][Improvement][UI] Front-end style should bracket same line

### _Why are the changes needed?_

Should bracket same line.

According to https://github.com/npetruzzelli/prettier-config-standard, should set true to bracketSameLine and also drop jsxBracketSameLine, which been deprecated.

Close #3646

### _How was this patch tested?_
- [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

- [ ] Add screenshots for manual tests if appropriate

- [ ] [Run test](https://kyuubi.readthedocs.io/en/master/develop_tools/testing.html#running-tests) locally before make a pull request

- [x] CI

Closes #4571 from zwangsheng/KYUUBI_4570.

Closes #3646

2b61d1173 [zwangsheng] [KYUUBI #3646] bracket same line

Authored-by: zwangsheng <2213335496@qq.com>
Signed-off-by: Cheng Pan <chengpan@apache.org>
This commit is contained in:
zwangsheng 2023-03-21 21:05:57 +08:00 committed by Cheng Pan
parent e00f6b5bf4
commit 824aba6070
No known key found for this signature in database
GPG Key ID: 8001952629BCC75D
3 changed files with 5 additions and 9 deletions

View File

@ -4,7 +4,7 @@
"vueIndentScriptAndStyle": true,
"singleQuote": true,
"quoteProps": "as-needed",
"jsxBracketSameLine": false,
"bracketSameLine": true,
"jsxSingleQuote": true,
"arrowParens": "always",
"htmlWhitespaceSensitivity": "strict",

View File

@ -21,14 +21,12 @@
class="el-menu-container"
:collapse="isCollapse"
:default-active="activePath"
:router="true"
>
:router="true">
<template v-for="(menu, index) in menus">
<el-menu-item
v-if="!menu.children || menu.children.length === 0"
:key="index + '-1'"
:index="menu.router"
>
:index="menu.router">
<el-icon>
<component :is="menu.icon" />
</el-icon>
@ -44,8 +42,7 @@
<el-menu-item
v-for="(child, index2) in menu.children"
:key="index2"
:index="child.router"
>
:index="child.router">
<el-icon :size="16">
<component :is="child.icon" />
</el-icon>

View File

@ -33,8 +33,7 @@
<el-dropdown-item
v-for="(locale, key) in locales"
:key="key"
:command="locale.key"
>
:command="locale.key">
{{ locale.label }}
</el-dropdown-item>
</el-dropdown-menu>