Skip to content

Commit fdde685

Browse files
committed
bump packages
1 parent 04245e6 commit fdde685

File tree

7 files changed

+5279
-8755
lines changed

7 files changed

+5279
-8755
lines changed

.eslintrc.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
module.exports = {
2+
extends: ['kyt'],
3+
4+
rules: {
5+
'react/static-property-placement': 0,
6+
},
7+
8+
overrides: [
9+
{
10+
files: ['*.test.js'],
11+
rules: {
12+
'react/jsx-props-no-spreading': 0,
13+
},
14+
},
15+
],
16+
};

.eslintrc.json

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

__tests__/fragment.test.js

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { Fragment } from 'react';
1+
import React from 'react';
22
import ReactDOM from 'react-dom';
33
import { Helmet } from '../src';
44
import Provider from '../src/Provider';
@@ -15,9 +15,10 @@ describe('fragments', () => {
1515
it('parses Fragments', () => {
1616
render(
1717
<Helmet>
18-
<Fragment>
18+
<>
1919
<title>Hello</title>
20-
</Fragment>
20+
<meta charSet="utf-8" />
21+
</>
2122
</Helmet>
2223
);
2324

@@ -27,15 +28,13 @@ describe('fragments', () => {
2728
it('parses nested Fragments', () => {
2829
render(
2930
<Helmet>
30-
<Fragment>
31+
<>
3132
<title>Foo</title>
32-
<Fragment>
33+
<>
3334
<title>Bar</title>
34-
<Fragment>
35-
<title>Baz</title>
36-
</Fragment>
37-
</Fragment>
38-
</Fragment>
35+
<title>Baz</title>
36+
</>
37+
</>
3938
</Helmet>
4039
);
4140

__tests__/server/meta.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { Fragment } from 'react';
1+
import React from 'react';
22
import ReactServer from 'react-dom/server';
33
import { Helmet } from '../../src';
44
import Provider from '../../src/Provider';
@@ -52,7 +52,7 @@ describe('server', () => {
5252
expect(meta).toEqual(expect.objectContaining({ type: 'meta' }));
5353
});
5454

55-
const markup = ReactServer.renderToStaticMarkup(<Fragment>{metaComponent}</Fragment>);
55+
const markup = ReactServer.renderToStaticMarkup(metaComponent);
5656

5757
expect(markup).toMatchSnapshot();
5858
});
@@ -114,7 +114,7 @@ describe('server', () => {
114114
expect(meta).toEqual(expect.objectContaining({ type: 'meta' }));
115115
});
116116

117-
const markup = ReactServer.renderToStaticMarkup(<Fragment>{metaComponent}</Fragment>);
117+
const markup = ReactServer.renderToStaticMarkup(metaComponent);
118118

119119
expect(markup).toMatchSnapshot();
120120
});

0 commit comments

Comments
 (0)