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

fix linter

This commit is contained in:
Ian Storm Taylor
2017-10-16 20:35:18 -07:00
parent 276ed274b1
commit fb0bdfa28b
3 changed files with 3 additions and 3 deletions

View File

@@ -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",

View File

@@ -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.

View File

@@ -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++) {