From 46e9129ec3f028f9537ca2eab0a6712808c3be9e Mon Sep 17 00:00:00 2001 From: wangchangqi Date: Thu, 18 Aug 2022 20:42:28 +0800 Subject: [PATCH] fix filenames --- .prettierrc.yaml | 4 +--- .../about_machine.ts => about-machine/about-machine.ts} | 0 src/test/panels/general/general.ts | 6 +++--- .../general/update/{auto_update.ts => auto-update.ts} | 0 .../general/update/{update_system.ts => update-system.ts} | 0 5 files changed, 4 insertions(+), 6 deletions(-) rename src/test/panels/general/{about_machine/about_machine.ts => about-machine/about-machine.ts} (100%) rename src/test/panels/general/update/{auto_update.ts => auto-update.ts} (100%) rename src/test/panels/general/update/{update_system.ts => update-system.ts} (100%) diff --git a/.prettierrc.yaml b/.prettierrc.yaml index e7c9d91..7fdc21b 100644 --- a/.prettierrc.yaml +++ b/.prettierrc.yaml @@ -5,14 +5,12 @@ semi: false singleQuote: true quoteProps: 'as-needed' bracketSpacing: false -# 多属性html标签的‘>’折行放置 +# 多属性html标签的'>'折行放置 jsxBracketSameLine: false arrowParens: 'always' requirePragma: false insertPragma: false -# //对HTML全局空白不敏感 htmlWhitespaceSensitivity: 'ignore' -# 结束行形式 endOfLine: 'lf' # 对引用代码进行格式化 embeddedLanguageFormatting: 'auto' diff --git a/src/test/panels/general/about_machine/about_machine.ts b/src/test/panels/general/about-machine/about-machine.ts similarity index 100% rename from src/test/panels/general/about_machine/about_machine.ts rename to src/test/panels/general/about-machine/about-machine.ts diff --git a/src/test/panels/general/general.ts b/src/test/panels/general/general.ts index 35631f6..c117b37 100644 --- a/src/test/panels/general/general.ts +++ b/src/test/panels/general/general.ts @@ -5,9 +5,9 @@ import {UlType} from '../../../components/ul/ul' import {LiType} from '../../../components/li/li' import {ButtonType, StarButton} from '../../../components/button/button' import {sharedStyles} from '../shared-styles' -import './about_machine/about_machine' -import './update/auto_update' -import './update/update_system' +import './about-machine/about-machine' +import './update/auto-update' +import './update/update-system' @customElement('panel-general') export class PanelGeneral extends LitElement { diff --git a/src/test/panels/general/update/auto_update.ts b/src/test/panels/general/update/auto-update.ts similarity index 100% rename from src/test/panels/general/update/auto_update.ts rename to src/test/panels/general/update/auto-update.ts diff --git a/src/test/panels/general/update/update_system.ts b/src/test/panels/general/update/update-system.ts similarity index 100% rename from src/test/panels/general/update/update_system.ts rename to src/test/panels/general/update/update-system.ts