Skip to content

Commit 03235bf

Browse files
committed
chore: Fix spire setup
1 parent 9d74549 commit 03235bf

File tree

20 files changed

+468
-321
lines changed

20 files changed

+468
-321
lines changed

.eslintrc.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

.prettierignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

.prettierrc.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

.spire/spire-plugin-tslint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ function tslint({ setState }) {
22
return {
33
name: 'spire-plugin-tslint',
44
async precommit() {
5-
setState(state => ({
5+
setState((state) => ({
66
linters: [
77
...state.linters,
88
{ '**/*.tsx?': ['tsc', '--project', 'types'] },

docs/docs/components/HigherOrderComponent/WithIntersectionObserver.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { Component } from 'react';
22
import Observer from '../../../../src/IntersectionObserver';
33

4-
export default threshold => BaseComponent => {
4+
export default (threshold) => (BaseComponent) => {
55
const displayName =
66
BaseComponent.displayName || BaseComponent.name || 'Component';
77

docs/docs/components/ImpressionTracking/AdImpression.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default class AdImpression extends React.Component {
1010
tracked: '',
1111
};
1212

13-
handleChange = event => {
13+
handleChange = (event) => {
1414
if (event.isIntersecting && event.intersectionRatio >= 0.5) {
1515
this.recordedTimeout = setTimeout(() => {
1616
this.setState({ tracked: 'ad--tracked' });

docs/docs/components/OnlyOnce/OnlyOnce.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { decorateAction } from '@storybook/addon-actions';
33
import Observer from '../../../../src/IntersectionObserver';
44

55
const storyBookAction = decorateAction([
6-
args =>
6+
(args) =>
77
['isIntersecting', 'intersectionRatio'].map(
8-
key => `${key}: ${args[0][key]}`
8+
(key) => `${key}: ${args[0][key]}`
99
),
1010
])('onChange');
1111

docs/docs/components/Playground/PlaygroundRootMargin.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import { select } from '@storybook/addon-knobs/react';
44
import Observer from '../../../../src/IntersectionObserver';
55

66
const storyBookAction = decorateAction([
7-
args =>
7+
(args) =>
88
['isIntersecting', 'intersectionRatio'].map(
9-
key => `${key}: ${args[0][key]}`
9+
(key) => `${key}: ${args[0][key]}`
1010
),
1111
])('onChange');
1212

@@ -15,7 +15,7 @@ export default class WindowRoot extends Component {
1515
visibility: 'hidden',
1616
};
1717

18-
handleChange = event => {
18+
handleChange = (event) => {
1919
storyBookAction(event);
2020
this.setState({
2121
visibility: event.isIntersecting ? 'visible' : 'invisible',

docs/docs/components/WindowFrame/WindowFrame.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { decorateAction } from '@storybook/addon-actions';
33
import Observer from '../../../../src/IntersectionObserver';
44

55
const storyBookAction = decorateAction([
6-
args =>
6+
(args) =>
77
['isIntersecting', 'intersectionRatio'].map(
8-
key => `${key}: ${args[0][key]}`
8+
(key) => `${key}: ${args[0][key]}`
99
),
1010
])('onChange');
1111

@@ -14,7 +14,7 @@ export default class WindowFrame extends Component {
1414
visibility: 'hidden',
1515
};
1616

17-
handleChange = event => {
17+
handleChange = (event) => {
1818
storyBookAction(event);
1919
this.setState({
2020
visibility: event.isIntersecting ? 'visible' : 'invisible',

docs/docs/components/WindowRoot/WindowRoot.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { decorateAction } from '@storybook/addon-actions';
33
import Observer from '../../../../src/IntersectionObserver';
44

55
const storyBookAction = decorateAction([
6-
args =>
6+
(args) =>
77
['isIntersecting', 'intersectionRatio'].map(
8-
key => `${key}: ${args[0][key]}`
8+
(key) => `${key}: ${args[0][key]}`
99
),
1010
])('onChange');
1111

@@ -14,7 +14,7 @@ export default class WindowRoot extends Component {
1414
visibility: 'hidden',
1515
};
1616

17-
handleChange = event => {
17+
handleChange = (event) => {
1818
storyBookAction(event);
1919
this.setState({
2020
visibility: event.isIntersecting ? 'visible' : 'invisible',

0 commit comments

Comments
 (0)