Skip to content

Commit

Permalink
chore(deps): update all dependencies (#67)
Browse files Browse the repository at this point in the history
* chore(deps): update all dependencies

* chore: bump and fix eslint

* chore: bump and fix eslint

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Mirone <Saul-Mirone@outlook.com>
  • Loading branch information
renovate[bot] and Saul-Mirone authored May 27, 2024
1 parent 13b7e3a commit 1e6036c
Show file tree
Hide file tree
Showing 161 changed files with 1,542 additions and 800 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,15 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: export screenshots (on failure only)
uses: actions/upload-artifact@v4.3.1
uses: actions/upload-artifact@v4.3.3
if: ${{ failure() }}
with:
name: cypress-screenshots
path: e2e/cypress/screenshots
retention-days: 7

- name: export screen recordings (on failure only)
uses: actions/upload-artifact@v4.3.1
uses: actions/upload-artifact@v4.3.3
if: ${{ failure() }}
with:
name: cypress-videos
Expand Down
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

pnpm exec lint-staged
1 change: 0 additions & 1 deletion commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */
module.exports = { extends: ['@commitlint/config-conventional'] }
1 change: 0 additions & 1 deletion e2e/cypress.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */
import { defineConfig } from 'cypress'

export default defineConfig({
Expand Down
2 changes: 0 additions & 2 deletions e2e/cypress/e2e/lit/node-view.cy.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */

Cypress.config('baseUrl', `http://localhost:${Cypress.env('SERVER_PORT')}`)

beforeEach(() => {
Expand Down
2 changes: 0 additions & 2 deletions e2e/cypress/e2e/lit/plugin-view.cy.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */

Cypress.config('baseUrl', `http://localhost:${Cypress.env('SERVER_PORT')}`)

beforeEach(() => {
Expand Down
2 changes: 0 additions & 2 deletions e2e/cypress/e2e/lit/widget-view.cy.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */

Cypress.config('baseUrl', `http://localhost:${Cypress.env('SERVER_PORT')}`)

beforeEach(() => {
Expand Down
2 changes: 0 additions & 2 deletions e2e/cypress/e2e/react/node-view.cy.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */

Cypress.config('baseUrl', `http://localhost:${Cypress.env('SERVER_PORT')}`)

beforeEach(() => {
Expand Down
2 changes: 0 additions & 2 deletions e2e/cypress/e2e/react/plugin-view.cy.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */

Cypress.config('baseUrl', `http://localhost:${Cypress.env('SERVER_PORT')}`)

beforeEach(() => {
Expand Down
2 changes: 0 additions & 2 deletions e2e/cypress/e2e/react/widget-view.cy.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */

Cypress.config('baseUrl', `http://localhost:${Cypress.env('SERVER_PORT')}`)

beforeEach(() => {
Expand Down
2 changes: 0 additions & 2 deletions e2e/cypress/e2e/svelte/node-view.cy.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */

Cypress.config('baseUrl', `http://localhost:${Cypress.env('SERVER_PORT')}`)

beforeEach(() => {
Expand Down
2 changes: 0 additions & 2 deletions e2e/cypress/e2e/svelte/plugin-view.cy.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */

Cypress.config('baseUrl', `http://localhost:${Cypress.env('SERVER_PORT')}`)

beforeEach(() => {
Expand Down
2 changes: 0 additions & 2 deletions e2e/cypress/e2e/svelte/widget-view.cy.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */

Cypress.config('baseUrl', `http://localhost:${Cypress.env('SERVER_PORT')}`)

beforeEach(() => {
Expand Down
2 changes: 0 additions & 2 deletions e2e/cypress/e2e/vue/node-view.cy.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */

Cypress.config('baseUrl', `http://localhost:${Cypress.env('SERVER_PORT')}`)

beforeEach(() => {
Expand Down
2 changes: 0 additions & 2 deletions e2e/cypress/e2e/vue/plugin-view.cy.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */

Cypress.config('baseUrl', `http://localhost:${Cypress.env('SERVER_PORT')}`)

beforeEach(() => {
Expand Down
2 changes: 0 additions & 2 deletions e2e/cypress/e2e/vue/widget-view.cy.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */

Cypress.config('baseUrl', `http://localhost:${Cypress.env('SERVER_PORT')}`)

beforeEach(() => {
Expand Down
2 changes: 0 additions & 2 deletions e2e/cypress/plugins/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */

// This function is called when a project is opened or re-opened (e.g. due to
// the project's config changing)

Expand Down
2 changes: 0 additions & 2 deletions e2e/src/createEditorView.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */

import 'prosemirror-view/style/prosemirror.css'
import 'prosemirror-example-setup/style/style.css'
import 'prosemirror-menu/style/menu.css'
Expand Down
1 change: 0 additions & 1 deletion e2e/src/lit/components/Editor.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */
import {
ShallowLitElement,
useNodeViewFactory,
Expand Down
1 change: 0 additions & 1 deletion e2e/src/lit/components/Hashes.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */
import { ShallowLitElement, useWidgetViewContext } from '@prosemirror-adapter/lit'
import { html } from 'lit'
import { customElement } from 'lit/decorators.js'
Expand Down
1 change: 0 additions & 1 deletion e2e/src/lit/components/Heading.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */
import { ShallowLitElement, useNodeViewContext } from '@prosemirror-adapter/lit'
import { customElement } from 'lit/decorators.js'
import { ref } from 'lit/directives/ref.js'
Expand Down
1 change: 0 additions & 1 deletion e2e/src/lit/components/Paragraph.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */
import { ShallowLitElement, useNodeViewContext } from '@prosemirror-adapter/lit'
import { html, nothing } from 'lit'
import { customElement } from 'lit/decorators.js'
Expand Down
1 change: 0 additions & 1 deletion e2e/src/lit/components/Size.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */
import { ShallowLitElement, usePluginViewContext } from '@prosemirror-adapter/lit'
import { html } from 'lit'
import { customElement } from 'lit/decorators.js'
Expand Down
1 change: 0 additions & 1 deletion e2e/src/lit/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */
import { html } from 'lit'
import { customElement, state } from 'lit/decorators.js'
import { keyed } from 'lit/directives/keyed.js'
Expand Down
2 changes: 0 additions & 2 deletions e2e/src/react/App.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */

import { ProsemirrorAdapterProvider } from '@prosemirror-adapter/react'
import { StrictMode, useState } from 'react'

Expand Down
1 change: 0 additions & 1 deletion e2e/src/react/components/Editor.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */
import './Editor.css'

import { useNodeViewFactory, usePluginViewFactory, useWidgetViewFactory } from '@prosemirror-adapter/react'
Expand Down
1 change: 0 additions & 1 deletion e2e/src/react/components/Hashes.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */
import { useWidgetViewContext } from '@prosemirror-adapter/react'

export function Hashes() {
Expand Down
1 change: 0 additions & 1 deletion e2e/src/react/components/Heading.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */
import { useNodeViewContext } from '@prosemirror-adapter/react'

export function Heading() {
Expand Down
1 change: 0 additions & 1 deletion e2e/src/react/components/Paragraph.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */
import { useNodeViewContext } from '@prosemirror-adapter/react'

export function Paragraph() {
Expand Down
2 changes: 0 additions & 2 deletions e2e/src/react/components/Size.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */

import { usePluginViewContext } from '@prosemirror-adapter/react'

export function Size() {
Expand Down
2 changes: 0 additions & 2 deletions e2e/src/react/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */

import { createRoot } from 'react-dom/client'

import { App } from './App'
Expand Down
1 change: 0 additions & 1 deletion e2e/src/svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'

export default {
Expand Down
1 change: 0 additions & 1 deletion e2e/src/svelte/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */
import App from './App.svelte'

const app = new App({
Expand Down
2 changes: 0 additions & 2 deletions e2e/src/svelte/shim.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */

declare module '*.svelte' {
import type { SvelteComponent } from 'svelte'

Expand Down
1 change: 0 additions & 1 deletion e2e/src/vue/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */
import { createApp } from 'vue'

import App from './App.vue'
Expand Down
2 changes: 0 additions & 2 deletions e2e/src/vue/shim.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */

/// <reference types="vite/client" />

declare module '*.vue' {
Expand Down
2 changes: 0 additions & 2 deletions e2e/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */

import { resolve } from 'node:path'
import react from '@vitejs/plugin-react'
import vue from '@vitejs/plugin-vue'
Expand Down
25 changes: 7 additions & 18 deletions eslint.config.js → eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */
import antfu from '@antfu/eslint-config'
import react from 'eslint-plugin-react'
import hooks from 'eslint-plugin-react-hooks'
import { fixupPluginRules } from '@eslint/compat'

const antfu = require('@antfu/eslint-config').default
const header = require('eslint-plugin-header')
const react = require('eslint-plugin-react')
const hooks = require('eslint-plugin-react-hooks')

module.exports = antfu(
export default antfu(
{
stylistic: true,
markdown: false,
Expand All @@ -30,20 +28,11 @@ module.exports = antfu(
},
},
},
{
files: ['**/*.ts', '**/*.tsx'],
plugins: {
header,
},
rules: {
'header/header': ['error', 'block', ' Copyright 2021, Prosemirror Adapter by Mirone. '],
},
},
{
files: ['**/react/**/*.tsx', '**/react/**/*.ts'],
plugins: {
'react': react,
'react-hooks': hooks,
'react': fixupPluginRules(react),
'react-hooks': fixupPluginRules(hooks),
},
settings: {
react: {
Expand Down
1 change: 0 additions & 1 deletion examples/lit/src/components/Editor.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */
import {
ShallowLitElement,
useNodeViewFactory,
Expand Down
1 change: 0 additions & 1 deletion examples/lit/src/components/Hashes.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */
import { ShallowLitElement, useWidgetViewContext } from '@prosemirror-adapter/lit'
import { html } from 'lit'
import { customElement } from 'lit/decorators.js'
Expand Down
1 change: 0 additions & 1 deletion examples/lit/src/components/Heading.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */
import { ShallowLitElement, useNodeViewContext } from '@prosemirror-adapter/lit'
import { customElement } from 'lit/decorators.js'
import { ref } from 'lit/directives/ref.js'
Expand Down
1 change: 0 additions & 1 deletion examples/lit/src/components/Paragraph.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */
import { ShallowLitElement, useNodeViewContext } from '@prosemirror-adapter/lit'
import { html, nothing } from 'lit'
import { customElement } from 'lit/decorators.js'
Expand Down
1 change: 0 additions & 1 deletion examples/lit/src/components/Size.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */
import { ShallowLitElement, usePluginViewContext } from '@prosemirror-adapter/lit'
import { html } from 'lit'
import { customElement } from 'lit/decorators.js'
Expand Down
2 changes: 0 additions & 2 deletions examples/lit/src/createEditorView.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */

import 'prosemirror-view/style/prosemirror.css'
import 'prosemirror-example-setup/style/style.css'
import 'prosemirror-menu/style/menu.css'
Expand Down
1 change: 0 additions & 1 deletion examples/lit/src/my-element.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */
import { html } from 'lit'
import { customElement, state } from 'lit/decorators.js'
import { keyed } from 'lit/directives/keyed.js'
Expand Down
1 change: 0 additions & 1 deletion examples/lit/src/vite-env.d.ts
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */
1 change: 0 additions & 1 deletion examples/lit/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */
import { defineConfig } from 'vite'

// https://vitejs.dev/config/
Expand Down
1 change: 0 additions & 1 deletion examples/react/components/Editor.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */
import './Editor.css'

import { useNodeViewFactory, usePluginViewFactory, useWidgetViewFactory } from '@prosemirror-adapter/react'
Expand Down
1 change: 0 additions & 1 deletion examples/react/components/Hashes.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */
import { useWidgetViewContext } from '@prosemirror-adapter/react'

export function Hashes() {
Expand Down
1 change: 0 additions & 1 deletion examples/react/components/Heading.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */
import { useNodeViewContext } from '@prosemirror-adapter/react'

export function Heading() {
Expand Down
1 change: 0 additions & 1 deletion examples/react/components/Paragraph.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */
import { useNodeViewContext } from '@prosemirror-adapter/react'

export function Paragraph() {
Expand Down
1 change: 0 additions & 1 deletion examples/react/components/Size.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */
import { usePluginViewContext } from '@prosemirror-adapter/react'

export function Size() {
Expand Down
2 changes: 0 additions & 2 deletions examples/react/createEditorView.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */

import 'prosemirror-view/style/prosemirror.css'
import 'prosemirror-example-setup/style/style.css'
import 'prosemirror-menu/style/menu.css'
Expand Down
2 changes: 0 additions & 2 deletions examples/react/main.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */

import { ProsemirrorAdapterProvider } from '@prosemirror-adapter/react'
import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
Expand Down
2 changes: 0 additions & 2 deletions examples/react/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */

import react from '@vitejs/plugin-react'
import { defineConfig } from 'vite'

Expand Down
1 change: 0 additions & 1 deletion examples/svelte/src/app.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */
declare global {
namespace App {
// interface Error {}
Expand Down
1 change: 0 additions & 1 deletion examples/svelte/src/libs/createEditorView.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */
import 'prosemirror-view/style/prosemirror.css'
import 'prosemirror-example-setup/style/style.css'
import 'prosemirror-menu/style/menu.css'
Expand Down
1 change: 0 additions & 1 deletion examples/svelte/svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */
import adapter from '@sveltejs/adapter-auto'
import { vitePreprocess } from '@sveltejs/kit/vite'

Expand Down
1 change: 0 additions & 1 deletion examples/svelte/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */
import { sveltekit } from '@sveltejs/kit/vite'
import { defineConfig } from 'vite'

Expand Down
2 changes: 0 additions & 2 deletions examples/vue/createEditorView.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */

import 'prosemirror-view/style/prosemirror.css'
import 'prosemirror-example-setup/style/style.css'
import 'prosemirror-menu/style/menu.css'
Expand Down
1 change: 0 additions & 1 deletion examples/vue/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */
import { createApp } from 'vue'

import App from './App.vue'
Expand Down
2 changes: 0 additions & 2 deletions examples/vue/shim.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */

/// <reference types="vite/client" />

declare module '*.vue' {
Expand Down
2 changes: 0 additions & 2 deletions examples/vue/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* Copyright 2021, Prosemirror Adapter by Mirone. */

import vue from '@vitejs/plugin-vue'
import { defineConfig } from 'vite'

Expand Down
Loading

0 comments on commit 1e6036c

Please sign in to comment.