mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-17 12:41:44 +02:00
fix linter
This commit is contained in:
@@ -78,7 +78,7 @@
|
|||||||
"no-path-concat": "error",
|
"no-path-concat": "error",
|
||||||
"no-redeclare": "error",
|
"no-redeclare": "error",
|
||||||
"no-regex-spaces": "error",
|
"no-regex-spaces": "error",
|
||||||
"no-restricted-globals": ["error", "Debug", "document", "Document" "event", "history", "History", "length", "Map", "Node", "parent", "Range", "Selection", "Set", "Text"],
|
"no-restricted-globals": ["error", "Debug", "document", "Document", "event", "history", "History", "length", "Map", "Node", "parent", "Range", "Selection", "Set", "Text"],
|
||||||
"no-sequences": "error",
|
"no-sequences": "error",
|
||||||
"no-shadow": "error",
|
"no-shadow": "error",
|
||||||
"no-shadow-restricted-names": "error",
|
"no-shadow-restricted-names": "error",
|
||||||
|
@@ -6,7 +6,7 @@ import React from 'react'
|
|||||||
import ReactDOM from 'react-dom'
|
import ReactDOM from 'react-dom'
|
||||||
import initialState from './state.json'
|
import initialState from './state.json'
|
||||||
|
|
||||||
const root = document.querySelector('main')
|
const root = window.document.querySelector('main')
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Define a schema.
|
* Define a schema.
|
||||||
|
@@ -75,7 +75,7 @@ if (browser) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const testEl = document.createElement('div')
|
const testEl = window.document.createElement('div')
|
||||||
testEl.contentEditable = true
|
testEl.contentEditable = true
|
||||||
|
|
||||||
for (let i = 0; i < EVENT_RULES.length; i++) {
|
for (let i = 0; i < EVENT_RULES.length; i++) {
|
||||||
|
Reference in New Issue
Block a user