mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-06-07 09:25:29 +08:00
fix: apply prettier and eslint automatic fixes
This commit is contained in:
parent
a98fcaa8dd
commit
2bd5b987eb
@ -6,9 +6,7 @@
|
||||
"private": false,
|
||||
"arguments": [],
|
||||
"meta": {
|
||||
"tags": [
|
||||
"tiptap"
|
||||
],
|
||||
"tags": ["tiptap"],
|
||||
"git": "https://github.com/ueberdosis/tiptap.git"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -3,10 +3,7 @@
|
||||
"module": "NodeNext",
|
||||
"target": "ESNext",
|
||||
"moduleResolution": "NodeNext",
|
||||
"lib": [
|
||||
"ESNext",
|
||||
"DOM"
|
||||
],
|
||||
"lib": ["ESNext", "DOM"],
|
||||
"skipLibCheck": true,
|
||||
"esModuleInterop": true,
|
||||
"resolveJsonModule": true,
|
||||
@ -25,14 +22,9 @@
|
||||
"noPropertyAccessFromIndexSignature": false,
|
||||
"allowJs": true
|
||||
},
|
||||
"include": [
|
||||
"./src/**/*.ts",
|
||||
"./src/**/*.js",
|
||||
"./test/**/*.ts",
|
||||
"./test/**/*.js"
|
||||
],
|
||||
"include": ["./src/**/*.ts", "./src/**/*.js", "./test/**/*.ts", "./test/**/*.js"],
|
||||
"exclude": ["node_modules", "./dist/**/*"],
|
||||
"ts-node": {
|
||||
"transpileOnly": true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -5,11 +5,11 @@
|
||||
}
|
||||
|
||||
/* List styles */
|
||||
ul,
|
||||
ul,
|
||||
ol {
|
||||
padding: 0 1rem;
|
||||
margin: 1.25rem 1rem 1.25rem 0.4rem;
|
||||
|
||||
|
||||
li p {
|
||||
margin-top: 0.25em;
|
||||
margin-bottom: 0.25em;
|
||||
@ -17,39 +17,39 @@
|
||||
}
|
||||
|
||||
/* Heading styles */
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
line-height: 1.1;
|
||||
margin-top: 2.5rem;
|
||||
text-wrap: pretty;
|
||||
}
|
||||
|
||||
h1,
|
||||
h1,
|
||||
h2 {
|
||||
margin-top: 3.5rem;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 1.4rem;
|
||||
h1 {
|
||||
font-size: 1.4rem;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 1.2rem;
|
||||
h2 {
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 1.1rem;
|
||||
h3 {
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
font-size: 1rem;
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
/* Code and preformatted text styles */
|
||||
|
@ -70,7 +70,7 @@
|
||||
import Document from '@tiptap/extension-document'
|
||||
import Paragraph from '@tiptap/extension-paragraph'
|
||||
import Text from '@tiptap/extension-text'
|
||||
import { BackgroundColor , TextStyle } from '@tiptap/extension-text-style'
|
||||
import { BackgroundColor, TextStyle } from '@tiptap/extension-text-style'
|
||||
import { Editor, EditorContent } from '@tiptap/vue-3'
|
||||
|
||||
export default {
|
||||
|
@ -3,7 +3,7 @@ import './styles.scss'
|
||||
import Document from '@tiptap/extension-document'
|
||||
import Paragraph from '@tiptap/extension-paragraph'
|
||||
import Text from '@tiptap/extension-text'
|
||||
import { FontFamily , TextStyle } from '@tiptap/extension-text-style'
|
||||
import { FontFamily, TextStyle } from '@tiptap/extension-text-style'
|
||||
import { EditorContent, useEditor, useEditorState } from '@tiptap/react'
|
||||
import React from 'react'
|
||||
|
||||
|
@ -43,7 +43,7 @@
|
||||
import Document from '@tiptap/extension-document'
|
||||
import Paragraph from '@tiptap/extension-paragraph'
|
||||
import Text from '@tiptap/extension-text'
|
||||
import { FontFamily , TextStyle } from '@tiptap/extension-text-style'
|
||||
import { FontFamily, TextStyle } from '@tiptap/extension-text-style'
|
||||
import { Editor, EditorContent } from '@tiptap/vue-3'
|
||||
|
||||
export default {
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { FontSize , TextStyle } from '@tiptap/extension-text-style'
|
||||
import { FontSize, TextStyle } from '@tiptap/extension-text-style'
|
||||
import { EditorContent, useEditor } from '@tiptap/react'
|
||||
import StarterKit from '@tiptap/starter-kit'
|
||||
|
||||
|
@ -26,7 +26,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { FontSize , TextStyle } from '@tiptap/extension-text-style'
|
||||
import { FontSize, TextStyle } from '@tiptap/extension-text-style'
|
||||
import StarterKit from '@tiptap/starter-kit'
|
||||
import { Editor, EditorContent } from '@tiptap/vue-3'
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* Basic editor styles */
|
||||
.tiptap {
|
||||
line-height: 1.0;
|
||||
line-height: 1;
|
||||
:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* Basic editor styles */
|
||||
.tiptap {
|
||||
line-height: 1.0;
|
||||
line-height: 1;
|
||||
:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
@ -25,7 +25,6 @@
|
||||
padding: 0.25em 0.3em;
|
||||
}
|
||||
|
||||
|
||||
// Selection styles
|
||||
.selection {
|
||||
box-shadow: 0 0 0 2px var(--purple);
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
/* Basic editor styles */
|
||||
.tiptap {
|
||||
:first-child {
|
||||
|
@ -4,7 +4,7 @@ import { Editor } from '@tiptap/core'
|
||||
import Document from '@tiptap/extension-document'
|
||||
import Paragraph from '@tiptap/extension-paragraph'
|
||||
import Text from '@tiptap/extension-text'
|
||||
import { Color, FontFamily , TextStyle } from '@tiptap/extension-text-style'
|
||||
import { Color, FontFamily, TextStyle } from '@tiptap/extension-text-style'
|
||||
|
||||
describe('isActive', () => {
|
||||
it('should check the current node', () => {
|
||||
|
Loading…
Reference in New Issue
Block a user