Skip to content

Commit 106d593

Browse files
committed
fix(): Fixes the project build by addressing some issues introduced by the eslint upgrade.
Fixes the project build by addressing some issues introduced by the eslint upgrade.
1 parent 4670cc9 commit 106d593

File tree

5 files changed

+16
-13
lines changed

5 files changed

+16
-13
lines changed

.eslintrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"no-confusing-arrow": 0,
2424
"prefer-arrow-callback": 0,
2525
"quotes": [2, "backtick", "avoid-escape"],
26-
"space-infix-ops": 0
26+
"space-infix-ops": 0,
27+
"react/jsx-filename-extension": 0
2728
}
2829
}

lib/react-component-queries.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@
3131
},
3232
"homepage": "https://github.com/ctrlplusb/react-component-queries#readme",
3333
"devDependencies": {
34-
"babel-cli": "6.11.4",
35-
"babel-core": "6.13.2",
34+
"babel-cli": "6.14.0",
35+
"babel-core": "6.14.0",
3636
"babel-eslint": "6.1.2",
3737
"babel-loader": "6.2.5",
3838
"babel-plugin-rewire": "1.0.0-rc-2",
39-
"babel-preset-es2015": "6.13.2",
39+
"babel-preset-es2015": "6.14.0",
4040
"babel-preset-react": "6.11.1",
4141
"babel-preset-stage-1": "6.13.0",
42-
"babel-register": "6.11.6",
42+
"babel-register": "6.14.0",
4343
"chai": "3.5.0",
4444
"codecov.io": "0.1.6",
4545
"commitizen": "2.8.6",
@@ -51,7 +51,7 @@
5151
"eslint-loader": "1.5.0",
5252
"eslint-plugin-import": "1.14.0",
5353
"eslint-plugin-jsx-a11y": "2.1.0",
54-
"eslint-plugin-mocha": "4.3.0",
54+
"eslint-plugin-mocha": "4.4.0",
5555
"eslint-plugin-react": "6.1.2",
5656
"express": "4.14.0",
5757
"ghooks": "1.3.2",

src/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
export default from './ComponentQueries';
1+
import ComponentQueries from './ComponentQueries';
2+
3+
export default ComponentQueries;

test/ComponentQueries.test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ describeWithDOM(`Given the ComponentQueries library`, () => {
88
let sizeMeConfig;
99

1010
beforeEach(() => {
11-
ComponentQueries = require(`../src/index.js`).default;
11+
ComponentQueries = require(`../src/ComponentQueries.js`).default;
1212

1313
// Set up our mocks.
1414
const ComponentQueriesRewireAPI = ComponentQueries.__RewireAPI__;
@@ -85,7 +85,7 @@ describeWithDOM(`Given the ComponentQueries library`, () => {
8585
monitorWidth: false,
8686
refreshRate: 200
8787
}
88-
})(() => <div></div>);
88+
})(() => <div />);
8989

9090
expect(sizeMeConfig).to.eql({
9191
monitorHeight: true,
@@ -134,7 +134,7 @@ describeWithDOM(`Given the ComponentQueries library`, () => {
134134

135135
const ComponentQueriedComponent = ComponentQueries(
136136
({ height }) => { actualHeight = height; return {}; }
137-
)(() => <div></div>);
137+
)(() => <div />);
138138

139139
// Initial render
140140
mount(<ComponentQueriedComponent size={{ width: 100, height: 100 }} />);
@@ -147,7 +147,7 @@ describeWithDOM(`Given the ComponentQueries library`, () => {
147147
const ComponentQueriedComponent = ComponentQueries(
148148
({ width }) => width <= 100 ? { foo: `bar` } : {},
149149
({ width }) => width <= 100 ? { foo: `baz` } : {},
150-
)((props) => { receivedProps = props; return <div></div>; });
150+
)((props) => { receivedProps = props; return <div />; });
151151

152152
// Initial render with duplicate query result.
153153
const mounted = mount(
@@ -170,7 +170,7 @@ describeWithDOM(`Given the ComponentQueries library`, () => {
170170
],
171171
conflictResolver: (x, y, key) =>
172172
key === `foo` ? x.concat(` `, y) : y
173-
})((props) => { receivedProps = props; return <div></div>; });
173+
})((props) => { receivedProps = props; return <div />; });
174174

175175
// Initial render duplicate prop
176176
const mounted = mount(

0 commit comments

Comments
 (0)