1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-31 02:49:56 +02:00

Add Prettier with ESLint integration (#1589)

* Add Prettier, with basic config and ESLint integration

* Apply Prettier to all files using `yarn lint --fix`

* Tell Prettier to ignore an empty text in a test output.

* Run Prettier on JS files not handled by ESLint, and lint them too
This commit is contained in:
Renaud Chaput
2018-02-06 23:12:00 +00:00
committed by Ian Storm Taylor
parent f28c59a26e
commit 3339d088e1
637 changed files with 4432 additions and 4281 deletions

View File

@@ -1,4 +1,3 @@
import Plain from 'slate-plain-serializer'
import { Editor } from 'slate-react'
@@ -11,7 +10,6 @@ import React from 'react'
*/
class PlainText extends React.Component {
/**
* Deserialize the initial editor value.
*
@@ -19,7 +17,9 @@ class PlainText extends React.Component {
*/
state = {
value: Plain.deserialize('This is editable plain text, just like a <textarea>!')
value: Plain.deserialize(
'This is editable plain text, just like a <textarea>!'
),
}
/**
@@ -49,7 +49,6 @@ class PlainText extends React.Component {
</div>
)
}
}
/**