Skip to content

Commit

Permalink
Adjust code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
choozn committed May 7, 2022
1 parent 0852390 commit 3d422f4
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 16 deletions.
15 changes: 6 additions & 9 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { terser } from "rollup-plugin-terser";
import { terser } from 'rollup-plugin-terser';
import typescript from 'rollup-plugin-typescript2';
import pkg from './package.json';

Expand All @@ -10,12 +10,9 @@ export default {
format: 'cjs',
exports: 'named',
sourcemap: true,
strict: false
}
strict: false,
},
],
plugins: [
typescript(),
terser()
],
external: ['react', 'react-dom', 'react-motion']
}
plugins: [typescript(), terser()],
external: ['react', 'react-dom', 'react-motion'],
};
4 changes: 2 additions & 2 deletions src/Child.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ interface Props {
inverted?: boolean;
}

const MouseParallaxChild = ({ children }: Props) => (<> {children} </>);
const MouseParallaxChild = ({ children }: Props) => <> {children} </>;

export default MouseParallaxChild;
export default MouseParallaxChild;
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { default as MouseParallaxChild } from './Child';
export { default as MouseParallaxContainer } from './Container';
export { default as MouseParallaxChild } from './Child';
10 changes: 6 additions & 4 deletions src/interfaces.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
export interface UpdateStyleProps {
container: { x: number, y: number },
px: { x: number, y: number },
percentage: { x: number, y: number };
container: { x: number; y: number };
px: { x: number; y: number };
percentage: { x: number; y: number };
}

export type Middleware = ((offsetOfMouseToCenter: UpdateStyleProps) => React.CSSProperties);
export type Middleware = (
offsetOfMouseToCenter: UpdateStyleProps
) => React.CSSProperties;

0 comments on commit 3d422f4

Please sign in to comment.