Skip to content

Commit bacf08d

Browse files
committed
feat(TypeScript): the source is now fully typed using TS
1 parent 45badb6 commit bacf08d

34 files changed

+980
-595
lines changed

.babelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"presets": ["@researchgate/babel-preset"]
2+
"presets": ["@researchgate/babel-preset", "@babel/preset-typescript"]
33
}

.eslintignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
node_modules
22
lib
3-
.docs
3+
typings
4+
.docs
5+
.yarn

.eslintrc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
// Keep this file for editor support
2-
module.exports = require('@researchgate/spire-config/eslint/react');
1+
// This file was created by spire-plugin-eslint for editor support
2+
module.exports = require('@researchgate/spire-config/eslint/react-typescript');

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@ yarn-error.log
44
/lib
55
/src/coverage
66
/.docs
7-
.DS_Store
7+
.DS_Store
8+
/.vscode
9+
tsconfig.tsbuildinfo
10+
typings

.spire/spire-plugin-tslint.js

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

docs/docs/components/.eslintrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"rules": {
3+
"import/no-extraneous-dependencies": "off"
4+
}
5+
}

docs/docs/components/HigherOrderComponent/WithIntersectionObserver.js

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

44
export default (threshold) => (BaseComponent) => {
55
const displayName =

docs/docs/components/ImpressionTracking/AdImpression.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
33
import { action } from '@storybook/addon-actions';
4-
import Observer from '../../../../src/IntersectionObserver';
4+
import Observer from '@researchgate/react-intersection-observer';
55

66
const tracked = action('tracked');
77

docs/docs/components/OnlyOnce/OnlyOnce.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { Component } from 'react';
22
import { decorateAction } from '@storybook/addon-actions';
3-
import Observer from '../../../../src/IntersectionObserver';
3+
import Observer from '@researchgate/react-intersection-observer';
44

55
const storyBookAction = decorateAction([
66
(args) =>

docs/docs/components/Playground/PlaygroundRootMargin.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 { decorateAction } from '@storybook/addon-actions';
33
import { select } from '@storybook/addon-knobs/react';
4-
import Observer from '../../../../src/IntersectionObserver';
4+
import Observer from '@researchgate/react-intersection-observer';
55

66
const storyBookAction = decorateAction([
77
(args) =>

0 commit comments

Comments
 (0)