add precommit hook for linting and automatic eslint fixes + update eslint packages (#2862)
* chore: add precommit hook for eslint fixes, fix linting issues * chore: add eslint import sort plugin
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { Selection } from 'prosemirror-state'
|
||||
import { findParentNodeClosestToPos } from './findParentNodeClosestToPos'
|
||||
|
||||
import { Predicate } from '../types'
|
||||
import { findParentNodeClosestToPos } from './findParentNodeClosestToPos'
|
||||
|
||||
export function findParentNode(predicate: Predicate) {
|
||||
return (selection: Selection) => findParentNodeClosestToPos(selection.$from, predicate)
|
||||
|
||||
Reference in New Issue
Block a user