mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-06-07 17:43:49 +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,12 +22,7 @@
|
||||
"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
|
||||
|
@ -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