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, "private": false,
"arguments": [], "arguments": [],
"meta": { "meta": {
"tags": [ "tags": ["tiptap"],
"tiptap"
],
"git": "https://github.com/ueberdosis/tiptap.git" "git": "https://github.com/ueberdosis/tiptap.git"
} }
} }

View File

@ -3,10 +3,7 @@
"module": "NodeNext", "module": "NodeNext",
"target": "ESNext", "target": "ESNext",
"moduleResolution": "NodeNext", "moduleResolution": "NodeNext",
"lib": [ "lib": ["ESNext", "DOM"],
"ESNext",
"DOM"
],
"skipLibCheck": true, "skipLibCheck": true,
"esModuleInterop": true, "esModuleInterop": true,
"resolveJsonModule": true, "resolveJsonModule": true,
@ -25,14 +22,9 @@
"noPropertyAccessFromIndexSignature": false, "noPropertyAccessFromIndexSignature": false,
"allowJs": true "allowJs": true
}, },
"include": [ "include": ["./src/**/*.ts", "./src/**/*.js", "./test/**/*.ts", "./test/**/*.js"],
"./src/**/*.ts",
"./src/**/*.js",
"./test/**/*.ts",
"./test/**/*.js"
],
"exclude": ["node_modules", "./dist/**/*"], "exclude": ["node_modules", "./dist/**/*"],
"ts-node": { "ts-node": {
"transpileOnly": true "transpileOnly": true
} }
} }

View File

@ -5,11 +5,11 @@
} }
/* List styles */ /* List styles */
ul, ul,
ol { ol {
padding: 0 1rem; padding: 0 1rem;
margin: 1.25rem 1rem 1.25rem 0.4rem; margin: 1.25rem 1rem 1.25rem 0.4rem;
li p { li p {
margin-top: 0.25em; margin-top: 0.25em;
margin-bottom: 0.25em; margin-bottom: 0.25em;
@ -17,39 +17,39 @@
} }
/* Heading styles */ /* Heading styles */
h1, h1,
h2, h2,
h3, h3,
h4, h4,
h5, h5,
h6 { h6 {
line-height: 1.1; line-height: 1.1;
margin-top: 2.5rem; margin-top: 2.5rem;
text-wrap: pretty; text-wrap: pretty;
} }
h1, h1,
h2 { h2 {
margin-top: 3.5rem; margin-top: 3.5rem;
margin-bottom: 1.5rem; margin-bottom: 1.5rem;
} }
h1 { h1 {
font-size: 1.4rem; font-size: 1.4rem;
} }
h2 { h2 {
font-size: 1.2rem; font-size: 1.2rem;
} }
h3 { h3 {
font-size: 1.1rem; font-size: 1.1rem;
} }
h4, h4,
h5, h5,
h6 { h6 {
font-size: 1rem; font-size: 1rem;
} }
/* Code and preformatted text styles */ /* Code and preformatted text styles */

View File

@ -70,7 +70,7 @@
import Document from '@tiptap/extension-document' import Document from '@tiptap/extension-document'
import Paragraph from '@tiptap/extension-paragraph' import Paragraph from '@tiptap/extension-paragraph'
import Text from '@tiptap/extension-text' 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' import { Editor, EditorContent } from '@tiptap/vue-3'
export default { export default {

View File

@ -3,7 +3,7 @@ import './styles.scss'
import Document from '@tiptap/extension-document' import Document from '@tiptap/extension-document'
import Paragraph from '@tiptap/extension-paragraph' import Paragraph from '@tiptap/extension-paragraph'
import Text from '@tiptap/extension-text' 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 { EditorContent, useEditor, useEditorState } from '@tiptap/react'
import React from 'react' import React from 'react'

View File

@ -43,7 +43,7 @@
import Document from '@tiptap/extension-document' import Document from '@tiptap/extension-document'
import Paragraph from '@tiptap/extension-paragraph' import Paragraph from '@tiptap/extension-paragraph'
import Text from '@tiptap/extension-text' 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' import { Editor, EditorContent } from '@tiptap/vue-3'
export default { 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 { EditorContent, useEditor } from '@tiptap/react'
import StarterKit from '@tiptap/starter-kit' import StarterKit from '@tiptap/starter-kit'

View File

@ -26,7 +26,7 @@
</template> </template>
<script> <script>
import { FontSize , TextStyle } from '@tiptap/extension-text-style' import { FontSize, TextStyle } from '@tiptap/extension-text-style'
import StarterKit from '@tiptap/starter-kit' import StarterKit from '@tiptap/starter-kit'
import { Editor, EditorContent } from '@tiptap/vue-3' import { Editor, EditorContent } from '@tiptap/vue-3'

View File

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

View File

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

View File

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

View File

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

View File

@ -4,7 +4,7 @@ import { Editor } from '@tiptap/core'
import Document from '@tiptap/extension-document' import Document from '@tiptap/extension-document'
import Paragraph from '@tiptap/extension-paragraph' import Paragraph from '@tiptap/extension-paragraph'
import Text from '@tiptap/extension-text' 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', () => { describe('isActive', () => {
it('should check the current node', () => { it('should check the current node', () => {