Skip to content

Commit 5588168

Browse files
committed
fix: lint
1 parent c310007 commit 5588168

File tree

21 files changed

+1406
-3145
lines changed

21 files changed

+1406
-3145
lines changed

docs/.vitepress/config.js

Lines changed: 61 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -2,77 +2,77 @@ import { defineConfig } from 'vitepress'
22

33
// https://vitepress.dev/reference/site-config
44
export default defineConfig({
5-
title: 'Nuxt Tiptap Editor',
6-
description:
5+
title: 'Nuxt Tiptap Editor',
6+
description:
77
'Essentials to Quickly Integrate TipTap Editor into your Nuxt App',
88

9-
cleanUrls: true,
10-
lastUpdated: true,
9+
cleanUrls: true,
10+
lastUpdated: true,
1111

12-
head: [
13-
[
14-
'script',
15-
{
16-
async: true,
17-
src: 'https://www.googletagmanager.com/gtag/js?id=G-Z1D6HCTHXL',
18-
},
19-
],
20-
[
21-
'script',
22-
{},
23-
"window.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}\ngtag('js', new Date());\ngtag('config', 'G-Z1D6HCTHXL');",
24-
],
12+
head: [
13+
[
14+
'script',
15+
{
16+
async: true,
17+
src: 'https://www.googletagmanager.com/gtag/js?id=G-Z1D6HCTHXL',
18+
},
2519
],
20+
[
21+
'script',
22+
{},
23+
'window.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}\ngtag(\'js\', new Date());\ngtag(\'config\', \'G-Z1D6HCTHXL\');',
24+
],
25+
],
2626

27-
themeConfig: {
28-
// https://vitepress.dev/reference/default-theme-config
29-
search: {
30-
provider: 'local',
31-
},
27+
themeConfig: {
28+
// https://vitepress.dev/reference/default-theme-config
29+
search: {
30+
provider: 'local',
31+
},
3232

33-
nav: [
34-
{ text: 'Docs', link: '/docs/what-is' },
35-
{ text: 'Examples', link: '/examples/basic' },
36-
],
33+
nav: [
34+
{ text: 'Docs', link: '/docs/what-is' },
35+
{ text: 'Examples', link: '/examples/basic' },
36+
],
3737

38-
sidebar: [
39-
{
40-
text: 'Documentation',
41-
items: [
42-
{
43-
text: 'What is Nuxt Tiptap Editor?',
44-
link: '/docs/what-is',
45-
},
46-
{ text: 'Quick Setup', link: '/docs/quick-setup' },
47-
{ text: 'Important', link: '/docs/important' },
48-
{ text: 'Extensions', link: '/docs/extensions' },
49-
{ text: 'Development', link: '/docs/development' },
50-
{ text: 'Contribution', link: '/docs/contribution' },
51-
],
52-
},
53-
{
54-
text: 'Examples',
55-
items: [
56-
{ text: 'Basic', link: '/examples/basic' },
57-
{
58-
text: 'Pre-fill Content',
59-
link: '/examples/prefill-content',
60-
},
61-
{
38+
sidebar: [
39+
{
40+
text: 'Documentation',
41+
items: [
42+
{
43+
text: 'What is Nuxt Tiptap Editor?',
44+
link: '/docs/what-is',
45+
},
46+
{ text: 'Quick Setup', link: '/docs/quick-setup' },
47+
{ text: 'Important', link: '/docs/important' },
48+
{ text: 'Extensions', link: '/docs/extensions' },
49+
{ text: 'Development', link: '/docs/development' },
50+
{ text: 'Contribution', link: '/docs/contribution' },
51+
],
52+
},
53+
{
54+
text: 'Examples',
55+
items: [
56+
{ text: 'Basic', link: '/examples/basic' },
57+
{
58+
text: 'Pre-fill Content',
59+
link: '/examples/prefill-content',
60+
},
61+
{
6262
text: 'Code Block Highlighter',
6363
link: '/examples/lowlight',
6464
},
65-
{ text: 'Placeholder', link: '/examples/placeholder' },
66-
{ text: 'Image Upload', link: '/examples/image-upload' },
67-
],
68-
},
65+
{ text: 'Placeholder', link: '/examples/placeholder' },
66+
{ text: 'Image Upload', link: '/examples/image-upload' },
6967
],
68+
},
69+
],
7070

71-
socialLinks: [
72-
{
73-
icon: 'github',
74-
link: 'https://github.com/modbender/nuxt-tiptap-editor',
75-
},
76-
],
77-
},
71+
socialLinks: [
72+
{
73+
icon: 'github',
74+
link: 'https://github.com/modbender/nuxt-tiptap-editor',
75+
},
76+
],
77+
},
7878
})

eslint.config.mjs

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
11
// @ts-check
22
import { createConfigForNuxt } from '@nuxt/eslint-config/flat'
33

4-
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'
5-
64
// Run `npx @eslint/config-inspector` to inspect the resolved config interactively
75
export default createConfigForNuxt({
8-
features: {
9-
// Rules for module authors
10-
tooling: true,
11-
// Rules for formatting
12-
stylistic: true,
13-
},
14-
dirs: {
15-
src: ['./playground'],
16-
},
6+
features: {
7+
// Rules for module authors
8+
tooling: true,
9+
// Rules for formatting
10+
stylistic: true,
11+
},
12+
dirs: {
13+
src: ['./playground'],
14+
},
1715
}).append(
18-
// your custom flat config here...
19-
eslintPluginPrettierRecommended,
16+
// your custom flat config here...
2017
)

package.json

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@
4949
},
5050
"dependencies": {
5151
"@nuxt/kit": "^3.14.1592",
52-
"@tiptap/extension-code-block-lowlight": "^2.10.1",
53-
"@tiptap/extension-image": "^2.10.1",
54-
"@tiptap/extension-link": "^2.10.1",
55-
"@tiptap/pm": "^2.10.1",
56-
"@tiptap/starter-kit": "^2.10.1",
57-
"@tiptap/vue-3": "^2.10.1",
52+
"@tiptap/extension-code-block-lowlight": "^2.9.1",
53+
"@tiptap/extension-image": "^2.9.1",
54+
"@tiptap/extension-link": "^2.9.1",
55+
"@tiptap/pm": "^2.9.1",
56+
"@tiptap/starter-kit": "^2.9.1",
57+
"@tiptap/vue-3": "^2.9.1",
5858
"lowlight": "^3.1.0",
5959
"prosemirror-replaceattrs": "^1.0.0"
6060
},
@@ -71,8 +71,6 @@
7171
"@types/node": "^22.9.1",
7272
"changelogen": "^0.5.7",
7373
"eslint": "^9.15.0",
74-
"eslint-config-prettier": "^9.1.0",
75-
"eslint-plugin-prettier": "^5.2.1",
7674
"h3-formidable": "^1.0.0",
7775
"nuxt": "^3.14.1592",
7876
"prettier": "^3.3.3",

playground/app.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<NuxtLayout>
3-
<NuxtPage />
4-
</NuxtLayout>
2+
<NuxtLayout>
3+
<NuxtPage />
4+
</NuxtLayout>
55
</template>

0 commit comments

Comments
 (0)