Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
modbender committed Nov 21, 2024
1 parent c310007 commit 5588168
Show file tree
Hide file tree
Showing 21 changed files with 1,406 additions and 3,145 deletions.
122 changes: 61 additions & 61 deletions docs/.vitepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,77 +2,77 @@ import { defineConfig } from 'vitepress'

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

cleanUrls: true,
lastUpdated: true,
cleanUrls: true,
lastUpdated: true,

head: [
[
'script',
{
async: true,
src: 'https://www.googletagmanager.com/gtag/js?id=G-Z1D6HCTHXL',
},
],
[
'script',
{},
"window.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}\ngtag('js', new Date());\ngtag('config', 'G-Z1D6HCTHXL');",
],
head: [
[
'script',
{
async: true,
src: 'https://www.googletagmanager.com/gtag/js?id=G-Z1D6HCTHXL',
},
],
[
'script',
{},
'window.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}\ngtag(\'js\', new Date());\ngtag(\'config\', \'G-Z1D6HCTHXL\');',
],
],

themeConfig: {
// https://vitepress.dev/reference/default-theme-config
search: {
provider: 'local',
},
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
search: {
provider: 'local',
},

nav: [
{ text: 'Docs', link: '/docs/what-is' },
{ text: 'Examples', link: '/examples/basic' },
],
nav: [
{ text: 'Docs', link: '/docs/what-is' },
{ text: 'Examples', link: '/examples/basic' },
],

sidebar: [
{
text: 'Documentation',
items: [
{
text: 'What is Nuxt Tiptap Editor?',
link: '/docs/what-is',
},
{ text: 'Quick Setup', link: '/docs/quick-setup' },
{ text: 'Important', link: '/docs/important' },
{ text: 'Extensions', link: '/docs/extensions' },
{ text: 'Development', link: '/docs/development' },
{ text: 'Contribution', link: '/docs/contribution' },
],
},
{
text: 'Examples',
items: [
{ text: 'Basic', link: '/examples/basic' },
{
text: 'Pre-fill Content',
link: '/examples/prefill-content',
},
{
sidebar: [
{
text: 'Documentation',
items: [
{
text: 'What is Nuxt Tiptap Editor?',
link: '/docs/what-is',
},
{ text: 'Quick Setup', link: '/docs/quick-setup' },
{ text: 'Important', link: '/docs/important' },
{ text: 'Extensions', link: '/docs/extensions' },
{ text: 'Development', link: '/docs/development' },
{ text: 'Contribution', link: '/docs/contribution' },
],
},
{
text: 'Examples',
items: [
{ text: 'Basic', link: '/examples/basic' },
{
text: 'Pre-fill Content',
link: '/examples/prefill-content',
},
{
text: 'Code Block Highlighter',
link: '/examples/lowlight',
},
{ text: 'Placeholder', link: '/examples/placeholder' },
{ text: 'Image Upload', link: '/examples/image-upload' },
],
},
{ text: 'Placeholder', link: '/examples/placeholder' },
{ text: 'Image Upload', link: '/examples/image-upload' },
],
},
],

socialLinks: [
{
icon: 'github',
link: 'https://github.com/modbender/nuxt-tiptap-editor',
},
],
},
socialLinks: [
{
icon: 'github',
link: 'https://github.com/modbender/nuxt-tiptap-editor',
},
],
},
})
23 changes: 10 additions & 13 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
// @ts-check
import { createConfigForNuxt } from '@nuxt/eslint-config/flat'

import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'

// Run `npx @eslint/config-inspector` to inspect the resolved config interactively
export default createConfigForNuxt({
features: {
// Rules for module authors
tooling: true,
// Rules for formatting
stylistic: true,
},
dirs: {
src: ['./playground'],
},
features: {
// Rules for module authors
tooling: true,
// Rules for formatting
stylistic: true,
},
dirs: {
src: ['./playground'],
},
}).append(
// your custom flat config here...
eslintPluginPrettierRecommended,
// your custom flat config here...
)
14 changes: 6 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@
},
"dependencies": {
"@nuxt/kit": "^3.14.1592",
"@tiptap/extension-code-block-lowlight": "^2.10.1",
"@tiptap/extension-image": "^2.10.1",
"@tiptap/extension-link": "^2.10.1",
"@tiptap/pm": "^2.10.1",
"@tiptap/starter-kit": "^2.10.1",
"@tiptap/vue-3": "^2.10.1",
"@tiptap/extension-code-block-lowlight": "^2.9.1",
"@tiptap/extension-image": "^2.9.1",
"@tiptap/extension-link": "^2.9.1",
"@tiptap/pm": "^2.9.1",
"@tiptap/starter-kit": "^2.9.1",
"@tiptap/vue-3": "^2.9.1",
"lowlight": "^3.1.0",
"prosemirror-replaceattrs": "^1.0.0"
},
Expand All @@ -71,8 +71,6 @@
"@types/node": "^22.9.1",
"changelogen": "^0.5.7",
"eslint": "^9.15.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"h3-formidable": "^1.0.0",
"nuxt": "^3.14.1592",
"prettier": "^3.3.3",
Expand Down
6 changes: 3 additions & 3 deletions playground/app.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
</template>
Loading

0 comments on commit 5588168

Please sign in to comment.