Skip to content

Commit af2d0d5

Browse files
committedSep 3, 2017
1 parent 39a981f commit af2d0d5

28 files changed

+28
-28
lines changed
 

‎packages/draft-js-export-html/src/__tests__/stateToHTML-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* @flow */
1+
// @flow
22
const {describe, it} = global;
33
import expect from 'expect';
44
import {convertFromRaw} from 'draft-js';

‎packages/draft-js-export-html/src/helpers/__tests__/combineOrderedStyles-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* @flow */
1+
// @flow
22

33
let {describe, it} = global;
44

‎packages/draft-js-export-html/src/helpers/__tests__/normalizeAttributes-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* @flow */
1+
// @flow
22

33
let {describe, it} = global;
44

‎packages/draft-js-export-html/src/helpers/__tests__/styleToCSS-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* @flow */
1+
// @flow
22

33
let {describe, it} = global;
44

‎packages/draft-js-export-html/src/helpers/combineOrderedStyles.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* @flow */
1+
// @flow
22

33
type Attributes = {[key: string]: string};
44
type StyleDescr = {[key: string]: number | string};

‎packages/draft-js-export-html/src/helpers/normalizeAttributes.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* @flow */
1+
// @flow
22

33
type Attributes = {[key: string]: string};
44
type StringMap = {[key: string]: string};

‎packages/draft-js-export-html/src/helpers/styleToCSS.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* @flow */
1+
// @flow
22

33
type StyleDescr = {[key: string]: number | string};
44

‎packages/draft-js-export-html/src/stateToHTML.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* @flow */
1+
// @flow
22

33
import combineOrderedStyles from './helpers/combineOrderedStyles';
44
import normalizeAttributes from './helpers/normalizeAttributes';

‎packages/draft-js-export-markdown/src/__tests__/stateToMarkdown-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* @flow */
1+
// @flow
22
const {describe, it} = global;
33
import expect from 'expect';
44
import {convertFromRaw} from 'draft-js';

‎packages/draft-js-export-markdown/src/stateToMarkdown.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* @flow */
1+
// @flow
22

33
import {
44
getEntityRanges,

‎packages/draft-js-import-element/src/__tests__/stateFromElement-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* @flow */
1+
// @flow
22
const {describe, it} = global;
33
import expect from 'expect';
44
import stateFromElement from '../stateFromElement';

‎packages/draft-js-import-element/src/lib/__tests__/replaceTextWithMeta-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* @flow */
1+
// @flow
22
const {describe, it} = global;
33
import expect from 'expect';
44
import replaceTextWithMeta from '../replaceTextWithMeta';

‎packages/draft-js-import-element/src/lib/replaceTextWithMeta.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* @flow */
1+
// @flow
22

33
import type {IndexedSeq} from 'immutable';
44

‎packages/draft-js-import-element/src/stateFromElement.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* @flow */
1+
// @flow
22

33
import replaceTextWithMeta from './lib/replaceTextWithMeta';
44
import {

‎packages/draft-js-import-html/src/__tests__/parseHTML-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* @flow */
1+
// @flow
22
const {describe, it} = global;
33
import expect from 'expect';
44
import parseHTML from '../parseHTML';

‎packages/draft-js-import-html/src/__tests__/stateFromHTML-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* @flow */
1+
// @flow
22
const {describe, it} = global;
33
import expect from 'expect';
44
import stateFromHTML from '../stateFromHTML';

‎packages/draft-js-import-html/src/parseHTML.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* @flow */
1+
// @flow
22

33
export default function parseHTML(html: string): Element {
44
let doc;

‎packages/draft-js-import-html/src/stateFromHTML.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* @flow */
1+
// @flow
22

33
import {stateFromElement} from 'draft-js-import-element';
44
import parseHTML from './parseHTML';

‎packages/draft-js-import-markdown/src/__tests__/stateFromMarkdown-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* @flow */
1+
// @flow
22
const {describe, it} = global;
33
import expect from 'expect';
44
import stateFromMarkdown from '../stateFromMarkdown';

‎packages/draft-js-import-markdown/src/stateFromMarkdown.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* @flow */
1+
// @flow
22

33
import MarkdownParser from './MarkdownParser';
44
import {stateFromElement} from 'draft-js-import-element';

‎packages/draft-js-utils/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ This is a set of utilities originally built for [React-RTE](https://react-rte.or
44

55
# Development
66

7-
This project uses [Flow](http://flowtype.org/) for static type checking. The type annotations are optional, but preferred. Each file can opt-in to using Flow by adding `@flow` to the docblock or put this as the first line: `/* @flow */`.
7+
This project uses [Flow](http://flowtype.org/) for static type checking. The type annotations are optional, but preferred. Each file can opt-in to using Flow by adding `@flow` to the docblock or put this as the first line: `// @flow`.
88

99
Flow typechecks will be run as part of the normal tests `npm run test` but can also be run separately using `npm run typecheck`.

‎packages/draft-js-utils/src/__tests__/callModifierForSelectedBlocks-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* @flow */
1+
// @flow
22
const {describe, it, beforeEach} = global;
33
import expect from 'expect';
44
import callModifierForSelectedBlocks from '../callModifierForSelectedBlocks';

‎packages/draft-js-utils/src/__tests__/getEntityRanges-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* @flow */
1+
// @flow
22
const {describe, it, xit} = global;
33
import expect from 'expect';
44
import {INLINE_STYLE} from '../Constants';

‎packages/draft-js-utils/src/__tests__/getSelectedBlocks-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* @flow */
1+
// @flow
22
const {describe, it} = global;
33
import expect from 'expect';
44
import getSelectedBlocks from '../getSelectedBlocks';

‎packages/draft-js-utils/src/__tests__/main-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* @flow */
1+
// @flow
22
const {describe, it} = global;
33
import expect from 'expect';
44
import {Constants, BLOCK_TYPE} from '../main';

‎packages/draft-js-utils/src/getEntityRanges.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* @flow */
1+
// @flow
22
import {OrderedSet, is} from 'immutable';
33

44
import type {CharacterMetadata} from 'draft-js';

‎packages/synthetic-dom/src/SyntheticDOM.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* @flow */
1+
// @flow
22

33
type Attr = {name: string; value: string};
44
type AttrList = Array<Attr>;

‎packages/synthetic-dom/src/__tests__/SyntheticDOM-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* @flow */
1+
// @flow
22
const {describe, it} = global;
33
import expect from 'expect';
44
import {

0 commit comments

Comments
 (0)
Please sign in to comment.