fix linter errors

This commit is contained in:
Philipp Kühn
2019-05-04 11:00:50 +02:00
parent 0a98827b4c
commit 3a42fe388b
3 changed files with 5 additions and 7 deletions

View File

@@ -32,8 +32,8 @@ index = $pos.index(d)
// this is a copy of splitListItem
// see https://github.com/ProseMirror/prosemirror-schema-list/blob/master/src/schema-list.js
export default function splitListItem(itemType) {
return function _splitListItem(state, dispatch) {
export default function splitToDefaultListItem(itemType) {
return function (state, dispatch) {
const { $from, $to, node } = state.selection
if ((node && node.isBlock) || $from.depth < 2 || !$from.sameParent($to)) return false
const grandParent = $from.node(-1)