mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-21 06:31:28 +02:00
fix linting
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
"import/no-named-as-default": "error",
|
||||
"import/no-named-as-default-member": "error",
|
||||
"import/no-unresolved": "error",
|
||||
"indent": ["error", 2],
|
||||
"indent": ["error", 2, { "SwitchCase": 1, "MemberExpression": 1 }],
|
||||
"key-spacing": ["error", { "beforeColon": false, "afterColon": true }],
|
||||
"lines-around-comment": ["error", { "beforeBlockComment": true, "afterBlockComment": true }],
|
||||
"new-parens": "error",
|
||||
|
@@ -1,10 +1,7 @@
|
||||
|
||||
import { Editor, Mark, Raw } from '../..'
|
||||
import { Editor, Raw } from '../..'
|
||||
import React from 'react'
|
||||
import ReactDOM from 'react-dom'
|
||||
import initialState from './state.json'
|
||||
import isUrl from 'is-url'
|
||||
import { Map } from 'immutable'
|
||||
|
||||
/**
|
||||
* Define a schema.
|
||||
|
@@ -197,7 +197,7 @@ class Images extends React.Component {
|
||||
onDropOrPasteFiles = (e, data, state, editor) => {
|
||||
for (const file of data.files) {
|
||||
const reader = new FileReader()
|
||||
const [ type, ext ] = file.type.split('/')
|
||||
const [ type ] = file.type.split('/')
|
||||
if (type != 'image') continue
|
||||
|
||||
reader.addEventListener('load', () => {
|
||||
|
Reference in New Issue
Block a user