1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-17 12:41:44 +02:00

Fix a linter bug in a semi-colon case (#1928)

This commit is contained in:
Jinxuan Zhu
2018-06-22 11:48:36 -04:00
committed by Ian Storm Taylor
parent 2652680850
commit 0322f7a1b8
2 changed files with 1 additions and 1 deletions

View File

@@ -149,6 +149,7 @@
{ "blankLine": "any", "prev": "multiline-expression", "next": "return" }, { "blankLine": "any", "prev": "multiline-expression", "next": "return" },
{ "blankLine": "always", "prev": "*", "next": "multiline-expression" }, { "blankLine": "always", "prev": "*", "next": "multiline-expression" },
{ "blankLine": "always", "prev": "*", "next": "multiline-expression" }, { "blankLine": "always", "prev": "*", "next": "multiline-expression" },
{ "blankLine": "any", "prev": "empty", "next": "multiline-expression" },
{ "blankLine": "always", "prev": "multiline-block-like", "next": "*" }, { "blankLine": "always", "prev": "multiline-block-like", "next": "*" },
{ "blankLine": "any", "prev": "multiline-block-like", "next": "return" }, { "blankLine": "any", "prev": "multiline-block-like", "next": "return" },
{ "blankLine": "always", "prev": "*", "next": "multiline-block-like" }, { "blankLine": "always", "prev": "*", "next": "multiline-block-like" },

View File

@@ -59,7 +59,6 @@ function cloneFragment(event, value, fragment = value.fragment) {
// Remove any zero-width space spans from the cloned DOM so that they don't // Remove any zero-width space spans from the cloned DOM so that they don't
// show up elsewhere when pasted. // show up elsewhere when pasted.
// eslint-disable-next-line padding-line-between-statements
;[].slice.call(contents.querySelectorAll(ZERO_WIDTH_SELECTOR)).forEach(zw => { ;[].slice.call(contents.querySelectorAll(ZERO_WIDTH_SELECTOR)).forEach(zw => {
const isNewline = zw.getAttribute(ZERO_WIDTH_ATTRIBUTE) === 'n' const isNewline = zw.getAttribute(ZERO_WIDTH_ATTRIBUTE) === 'n'
zw.textContent = isNewline ? '\n' : '' zw.textContent = isNewline ? '\n' : ''