Skip to content

Commit 30d97b5

Browse files
Rename .js files to .jsx
1 parent 06e979d commit 30d97b5

File tree

7 files changed

+4
-7
lines changed

7 files changed

+4
-7
lines changed

.eslintrc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
// import/first is incompatible with airbnb config
1212
"import/first": 0,
1313

14-
// allow files to have extension ".js"
15-
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
16-
1714
"react/prop-types": [2, { "skipUndeclared": true }],
1815

1916
// allow ommitted parentheses in single-argument arrow functions
File renamed without changes.

src/Scrollama.js renamed to src/Scrollama.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { useMemo, useState } from 'react';
2-
import DebugOffset from './DebugOffset';
2+
import DebugOffset from './DebugOffset.jsx';
33
import { isOffsetInPixels } from './utils';
44

55
const createThreshold = (theta, height) => {

src/Step.js renamed to src/Step.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const Step = props => {
5252
});
5353

5454
const setRefs = useCallback(
55-
(node) => {
55+
node => {
5656
ref.current = node;
5757
inViewRef(node);
5858
scrollProgressRef(node)

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export { default as Scrollama } from './Scrollama';
2-
export { default as Step } from './Step';
1+
export { default as Scrollama } from './Scrollama.jsx';
2+
export { default as Step } from './Step.jsx';

0 commit comments

Comments
 (0)