@samitouri / QOS-React-2 / commits / ba1299acc2

Non idempotent steps in prettier

Sebastian Markbage committed Mar 13, 2017 at 17:06 UTC ba1299acc2c3b66ec1e093c201bcede421a8caa0
3 files changed +8 -11
src/isomorphic/classic/class/ReactClass.js
+4 -7
@@ -36,22 +36,19 @@ type SpecPolicy =
36 /**
37 * These methods may be defined only once by the class specification or mixin.
38 */
39 - | 'DEFINE_ONCE'
40 - | /**
39 + | 'DEFINE_ONCE' /**
40 * These methods may be defined by both the class specification and mixins.
41 * Subsequent definitions will be chained. These methods must return void.
42 */
44 - 'DEFINE_MANY'
45 - | /**
43 + | 'DEFINE_MANY' /**
44 * These methods are overriding the base class.
45 */
48 - 'OVERRIDE_BASE'
49 - | /**
46 + | 'OVERRIDE_BASE' /**
47 * These methods are similar to DEFINE_MANY, except we assume they return
48 * objects. We try to merge the keys of the return values of all the mixed in
49 * functions. If there is a key conflict we throw.
50 */
54 - 'DEFINE_MANY_MERGED';
51 + | 'DEFINE_MANY_MERGED';
52
53 /**
54 * Composite components are higher-level components that compose other composite
src/renderers/__tests__/ReactComponentLifeCycle-test.js
+2 -3
@@ -69,11 +69,10 @@ type ComponentLifeCycle =
69 * Mounted components have a DOM node representation and are capable of
70 * receiving new props.
71 */
72 - | 'MOUNTED'
73 - | /**
72 + | 'MOUNTED' /**
73 * Unmounted components are inactive and cannot receive new props.
74 */
76 - 'UNMOUNTED';
75 + | 'UNMOUNTED';
76
77 function getLifeCycleState(instance): ComponentLifeCycle {
78 return instance.updater.isMounted(instance) ? 'MOUNTED' : 'UNMOUNTED';
src/renderers/shared/stack/reconciler/Transaction.js
+2 -1
@@ -131,7 +131,8 @@ var TransactionImpl = {
131 d: D,
132 e: E,
133 f: F,
134 - ) => G>(method: T, scope: any, a: A, b: B, c: C, d: D, e: E, f: F): G { // eslint-disable-line space-before-function-paren
134 + ) => G>(method: T, scope: any, a: A, b: B, c: C, d: D, e: E, f: F): G {
135 + // eslint-disable-line space-before-function-paren
136 invariant(
137 !this.isInTransaction(),
138 'Transaction.perform(...): Cannot initialize a transaction when there ' +