style: minimium codemod

This commit is contained in:
AkaraChen 2024-10-22 09:50:03 +08:00
parent 9edd0a6eae
commit 3b896a796c
5 changed files with 11 additions and 11 deletions

View File

@ -8,11 +8,11 @@ import { useBoolean } from 'ahooks'
import { import {
Cog8ToothIcon, Cog8ToothIcon,
// CommandLineIcon, // CommandLineIcon,
Squares2X2Icon,
PuzzlePieceIcon,
DocumentTextIcon, DocumentTextIcon,
PaperClipIcon, PaperClipIcon,
PuzzlePieceIcon,
QuestionMarkCircleIcon, QuestionMarkCircleIcon,
Squares2X2Icon,
} from '@heroicons/react/24/outline' } from '@heroicons/react/24/outline'
import { import {
Cog8ToothIcon as Cog8ToothSolidIcon, Cog8ToothIcon as Cog8ToothSolidIcon,

View File

@ -20,7 +20,7 @@ const Progress: FC<IProgressProps> = ({
className={cn(s.bar, exhausted && s['bar-error'], 'absolute top-0 left-0 right-0 bottom-0')} className={cn(s.bar, exhausted && s['bar-error'], 'absolute top-0 left-0 right-0 bottom-0')}
style={{ width: `${value}%` }} style={{ width: `${value}%` }}
/> />
{Array(10).fill(0).map((i, k) => ( {Array.from({ length: 10 }).fill(0).map((i, k) => (
<div key={k} className={s['bar-item']} /> <div key={k} className={s['bar-item']} />
))} ))}
</div> </div>

View File

@ -12,6 +12,7 @@ export class AudioPlayerManager {
private audioPlayers: AudioPlayer | null = null private audioPlayers: AudioPlayer | null = null
private msgId: string | undefined private msgId: string | undefined
// eslint-disable-next-line
private constructor() { private constructor() {
} }

View File

@ -1,4 +1,4 @@
import type { EditorConfig, NodeKey, SerializedTextNode } from 'lexical' import type { EditorConfig, SerializedTextNode } from 'lexical'
import { $createTextNode, TextNode } from 'lexical' import { $createTextNode, TextNode } from 'lexical'
export class CustomTextNode extends TextNode { export class CustomTextNode extends TextNode {
@ -10,9 +10,9 @@ export class CustomTextNode extends TextNode {
return new CustomTextNode(node.__text, node.__key) return new CustomTextNode(node.__text, node.__key)
} }
constructor(text: string, key?: NodeKey) { // constructor(text: string, key?: NodeKey) {
super(text, key) // super(text, key)
} // }
createDOM(config: EditorConfig) { createDOM(config: EditorConfig) {
const dom = super.createDOM(config) const dom = super.createDOM(config)

View File

@ -1,7 +1,6 @@
import type { import type {
EditorConfig, EditorConfig,
LexicalNode, LexicalNode,
NodeKey,
SerializedTextNode, SerializedTextNode,
} from 'lexical' } from 'lexical'
import { import {
@ -18,9 +17,9 @@ export class VariableValueBlockNode extends TextNode {
return new VariableValueBlockNode(node.__text, node.__key) return new VariableValueBlockNode(node.__text, node.__key)
} }
constructor(text: string, key?: NodeKey) { // constructor(text: string, key?: NodeKey) {
super(text, key) // super(text, key)
} // }
createDOM(config: EditorConfig): HTMLElement { createDOM(config: EditorConfig): HTMLElement {
const element = super.createDOM(config) const element = super.createDOM(config)