fix: apply prettier and eslint automatic fixes

This commit is contained in:
Arnau Gómez Farell 2025-05-20 15:01:15 +02:00
parent a98fcaa8dd
commit 2bd5b987eb
No known key found for this signature in database
13 changed files with 31 additions and 43 deletions

View File

@ -6,9 +6,7 @@
"private": false,
"arguments": [],
"meta": {
"tags": [
"tiptap"
],
"tags": ["tiptap"],
"git": "https://github.com/ueberdosis/tiptap.git"
}
}

View File

@ -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

View File

@ -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 {

View File

@ -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'

View File

@ -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 {

View File

@ -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'

View File

@ -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'

View File

@ -1,6 +1,6 @@
/* Basic editor styles */
.tiptap {
line-height: 1.0;
line-height: 1;
:first-child {
margin-top: 0;
}

View File

@ -1,6 +1,6 @@
/* Basic editor styles */
.tiptap {
line-height: 1.0;
line-height: 1;
:first-child {
margin-top: 0;
}

View File

@ -25,7 +25,6 @@
padding: 0.25em 0.3em;
}
// Selection styles
.selection {
box-shadow: 0 0 0 2px var(--purple);

View File

@ -1,4 +1,3 @@
/* Basic editor styles */
.tiptap {
:first-child {

View File

@ -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', () => {