Commit 96f4467c authored by Robert Knight's avatar Robert Knight

Move `export` keyword to declaration site

Improve code style consistency by always putting the `export` keyword
at the site of the var/function/class declaration where possible.
parent 73dd54e1
......@@ -16,13 +16,13 @@ const HIGHLIGHT_BTN_SELECTOR = '.js-highlight-btn';
* Show the adder above the selection with an arrow pointing down at the
* selected text.
*/
const ARROW_POINTING_DOWN = 1;
export const ARROW_POINTING_DOWN = 1;
/**
* Show the adder above the selection with an arrow pointing up at the
* selected text.
*/
const ARROW_POINTING_UP = 2;
export const ARROW_POINTING_UP = 2;
function toPx(pixels) {
return pixels.toString() + 'px';
......@@ -287,5 +287,3 @@ export class Adder {
}, 1);
}
}
export { ARROW_POINTING_DOWN, ARROW_POINTING_UP };
......@@ -21,7 +21,7 @@
* Types of Markdown link that can be inserted with
* convertSelectionToLink()
*/
const LinkType = {
export const LinkType = {
ANCHOR_LINK: 0,
IMAGE_LINK: 1,
};
......@@ -264,5 +264,3 @@ export function toggleBlockStyle(state, prefix) {
});
}
}
export { LinkType };
......@@ -32,7 +32,7 @@ const fallbackInjector = {
* Consumers will either use this directly via `useContext` or use the
* `withServices` wrapper.
*/
const ServiceContext = createContext(fallbackInjector);
export const ServiceContext = createContext(fallbackInjector);
/**
* Wrap a React component to inject any services it depends upon as props.
......@@ -112,5 +112,3 @@ export function useService(service) {
const injector = useContext(ServiceContext);
return injector.get(service);
}
export { ServiceContext };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment