style: eslint config and prettier for dx

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei
2023-04-18 22:10:13 +08:00
parent f2c224157c
commit adaedce765
162 changed files with 1245 additions and 889 deletions
-1
View File
@@ -1,4 +1,3 @@
import { EditorSelection } from "@codemirror/state"
import { ICommand, wrapExecute } from "."
export const Code: ICommand = {
+2 -1
View File
@@ -1,5 +1,6 @@
import { EmojiPicker } from "~/components/common/EmojiPicker"
import { ICommand, prependExecute, wrapExecute } from "."
import { ICommand, wrapExecute } from "."
export const Emoji: ICommand<string> = {
name: "emoji",
+1
View File
@@ -1,4 +1,5 @@
import { getSiteLink } from "~/lib/helpers"
import { ICommand } from "."
export const Help: ICommand = {
+4 -3
View File
@@ -1,8 +1,9 @@
import { EditorSelection } from "@codemirror/state"
import { ICommand, prependExecute, wrapExecute } from "."
import { UploadFile } from "~/lib/upload-file"
import toast from "react-hot-toast"
import { UploadFile } from "~/lib/upload-file"
import { ICommand, wrapExecute } from "."
export const Image: ICommand = {
name: "upload-image",
label: "Upload Image",
+1 -2
View File
@@ -1,5 +1,4 @@
import { EditorSelection } from "@codemirror/state"
import { ICommand, prependExecute, wrapExecute } from "."
import { ICommand, wrapExecute } from "."
export const Link: ICommand = {
name: "link",
-1
View File
@@ -1,4 +1,3 @@
import { EditorSelection } from "@codemirror/state"
import { ICommand, wrapExecute } from "."
export const ListOrdered: ICommand = {
+6 -4
View File
@@ -1,21 +1,23 @@
import { Dispatch, SetStateAction } from "react"
import { EditorSelection } from "@codemirror/state"
import { EditorView } from "@codemirror/view"
import { Dispatch, SetStateAction } from "react"
import { Bold } from "./Bold"
import { Code } from "./Code"
import { CodeBlock } from "./CodeBlock"
import { Emoji } from "./Emoji"
import { Heading } from "./Heading"
import { Help } from "./Help"
import { Image } from "./Image"
import { Italic } from "./Italic"
import { Link } from "./Link"
import { ListOrdered } from "./ListOrdered"
import { ListUnordered } from "./ListUnordered"
import { Mention } from "./Mention"
import { Quote } from "./Quote"
import { Strikethrough } from "./Strikethrough"
import { Underline } from "./Underline"
import { Mention } from "./Mention"
import { Emoji } from "./Emoji"
import { Help } from "./Help"
export type ICommand<P = any> = {
icon: string