-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(deps): update dependency @antfu/eslint-config to v1 (#56)
* fix(deps): update dependency @antfu/eslint-config to v1 * chore: upgrade eslint * chore: fix e2e --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Mirone <Saul-Mirone@outlook.com>
- Loading branch information
1 parent
3b74d4c
commit d189139
Showing
48 changed files
with
701 additions
and
511 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"**/*.{js,ts,tsx,json,md,yml,yaml}": ["eslint --fix"] | ||
"**/*.{js,ts,tsx,json,md,yml,yaml}": ["eslint --fix"] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* Copyright 2021, Prosemirror Adapter by Mirone. */ | ||
import { useNodeViewContext } from '@prosemirror-adapter/react' | ||
|
||
export const Paragraph = () => { | ||
export function Paragraph() { | ||
const { contentRef, selected } = useNodeViewContext() | ||
return <div style={{ outline: selected ? 'blue solid 1px' : 'none' }} role="presentation" ref={contentRef} /> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"extends": "../tsconfig.base.json", | ||
"compilerOptions": { | ||
"sourceMap": false, | ||
"noEmit": true | ||
"noEmit": true, | ||
"sourceMap": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/* Copyright 2021, Prosemirror Adapter by Mirone. */ | ||
|
||
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( | ||
{ | ||
stylistic: true, | ||
markdown: false, | ||
typescript: { | ||
tsconfigPath: 'tsconfig.json', | ||
}, | ||
ignores: [ | ||
'.idea', | ||
'**/lib', | ||
'**/.svelte-kit', | ||
'CHANGELOG.md', | ||
], | ||
overrides: { | ||
typescript: { | ||
'ts/no-unsafe-assignment': 'off', | ||
'ts/no-unsafe-member-access': 'off', | ||
'ts/no-unsafe-argument': 'off', | ||
'ts/no-unsafe-call': 'off', | ||
'ts/no-unsafe-return': 'off', | ||
'ts/unbound-method': 'off', | ||
'ts/ban-types': 'off', | ||
}, | ||
}, | ||
}, | ||
{ | ||
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, | ||
}, | ||
settings: { | ||
react: { | ||
version: 'detect', | ||
}, | ||
}, | ||
rules: { | ||
...react.configs.recommended.rules, | ||
...hooks.configs.recommended.rules, | ||
'jsx-quotes': ['error', 'prefer-double'], | ||
'react/react-in-jsx-scope': 'off', | ||
}, | ||
}, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* Copyright 2021, Prosemirror Adapter by Mirone. */ | ||
import { useNodeViewContext } from '@prosemirror-adapter/react' | ||
|
||
export const Paragraph = () => { | ||
export function Paragraph() { | ||
const { contentRef, selected } = useNodeViewContext() | ||
return <div style={{ outline: selected ? 'blue solid 1px' : 'none' }} role="presentation" ref={contentRef} /> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
/* Copyright 2021, Prosemirror Adapter by Mirone. */ | ||
import { usePluginViewContext } from '@prosemirror-adapter/react' | ||
|
||
export const Size = () => { | ||
export function Size() { | ||
const { view } = usePluginViewContext() | ||
const size = view.state.doc.nodeSize | ||
return <div>Size for document: {size}</div> | ||
return ( | ||
<div> | ||
Size for document: | ||
{size} | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.