diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml index 8e3b4ef..a37a378 100644 --- a/.github/workflows/autofix.yml +++ b/.github/workflows/autofix.yml @@ -3,11 +3,11 @@ name: autofix.ci on: push: branches: - - master + - main pull_request: branches: - - master + - main merge_group: {} diff --git a/.github/workflows/deploy-doc.yml b/.github/workflows/deploy-doc.yml index a5dfc0c..d4643d2 100644 --- a/.github/workflows/deploy-doc.yml +++ b/.github/workflows/deploy-doc.yml @@ -2,7 +2,7 @@ name: GitHub Pages on: push: branches: - - master + - main workflow_dispatch: {} permissions: diff --git a/src/header.ts b/src/header.ts index 0312c72..745783e 100644 --- a/src/header.ts +++ b/src/header.ts @@ -1,13 +1,13 @@ -import type TypeHeader from 'quill/formats/header' -import Quill from 'quill' -import { randomID } from './utils' +import type TypeHeader from 'quill/formats/header'; +import Quill from 'quill'; +import { randomID } from './utils'; -const Header = Quill.import('formats/header') as typeof TypeHeader +const Header = Quill.import('formats/header') as typeof TypeHeader; export class HeaderWithID extends Header { static create(value: any) { - const node = super.create(value) - node.id = randomID() - return node + const node = super.create(value); + node.id = randomID(); + return node; } }