Skip to content

Commit 2b3ee0d

Browse files
Bump eslint-config-airbnb from 18.2.1 to 19.0.4 (#296)
* Bump eslint-config-airbnb from 18.2.1 to 19.0.4 Bumps [eslint-config-airbnb](https://github.com/airbnb/javascript) from 18.2.1 to 19.0.4. - [Release notes](https://github.com/airbnb/javascript/releases) - [Commits](airbnb/javascript@eslint-config-airbnb-v18.2.1...eslint-config-airbnb-v19.0.4) --- updated-dependencies: - dependency-name: eslint-config-airbnb dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * Apply ESLint fixes Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jonathan Beliën <[email protected]> Co-authored-by: Jonathan Beliën <[email protected]>
1 parent 6546a45 commit 2b3ee0d

33 files changed

+771
-6446
lines changed

package-lock.json

Lines changed: 275 additions & 5976 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
},
4040
"devDependencies": {
4141
"eslint": "^7.32.0",
42-
"eslint-config-airbnb": "^18.2.1",
42+
"eslint-config-airbnb": "^19.0.4",
4343
"eslint-config-prettier": "^8.5.0",
4444
"eslint-plugin-import": "^2.26.0",
4545
"eslint-plugin-jsx-a11y": "^6.6.1",

src/cms/previews/About.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import React from 'react';
33
import StyleInjector from './StyleInjector';
44
import { AboutTemplate } from '../../pages/about';
55

6-
const About = ({ entry, widgetFor }) => {
6+
function About({ entry, widgetFor }) {
77
const { data } = entry.toJS();
88

99
data.body = widgetFor('body');
@@ -13,6 +13,6 @@ const About = ({ entry, widgetFor }) => {
1313
<AboutTemplate data={data} preview />
1414
</StyleInjector>
1515
);
16-
};
16+
}
1717

1818
export default About;

src/cms/previews/Activity.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const init = {
1111
body: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum viverra nisl ante, quis mattis magna sagittis nec. Morbi luctus nisl a nisi tincidunt interdum. Duis at pharetra purus. Etiam imperdiet, nunc id ullamcorper hendrerit, tellus felis ultricies tortor, vitae hendrerit augue mauris eu velit.'
1212
};
1313

14-
const Activity = ({ entry, getAsset }) => {
14+
function Activity({ entry, getAsset }) {
1515
const { data } = entry.toJS();
1616

1717
data.logo = getAsset(entry.getIn(['data', 'logo'])).toString();
@@ -45,6 +45,6 @@ const Activity = ({ entry, getAsset }) => {
4545
</div>
4646
</StyleInjector>
4747
);
48-
};
48+
}
4949

5050
export default Activity;

src/cms/previews/Footer.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ import React from 'react';
33
import StyleInjector from './StyleInjector';
44
import FooterTemplate from '../../components/Footer';
55

6-
const Footer = ({ entry }) => {
6+
function Footer({ entry }) {
77
const { data } = entry.toJS();
88
return (
99
<StyleInjector>
1010
<FooterTemplate data={data} />
1111
</StyleInjector>
1212
);
13-
};
13+
}
1414

1515
export default Footer;

src/cms/previews/Header.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import React from 'react';
33
import StyleInjector from './StyleInjector';
44
import HeaderTemplate from '../../components/Header';
55

6-
const Header = ({ entry, getAsset }) => {
6+
function Header({ entry, getAsset }) {
77
const { data } = entry.toJS();
88

99
data.logo = getAsset(data.logo).toString();
@@ -13,6 +13,6 @@ const Header = ({ entry, getAsset }) => {
1313
<HeaderTemplate data={data} />
1414
</StyleInjector>
1515
);
16-
};
16+
}
1717

1818
export default Header;

src/cms/previews/Home.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import React from 'react';
33
import StyleInjector from './StyleInjector';
44
import { HomeTemplate } from '../../pages/index';
55

6-
const Home = ({ entry, getAsset, fieldsMetaData, boundGetAsset, config, isLoadingAsset }) => {
6+
function Home({ entry, getAsset, fieldsMetaData, boundGetAsset, config, isLoadingAsset }) {
77
if (isLoadingAsset) return <div>Loading...</div>;
88
const { data } = entry.toJS();
99

@@ -83,6 +83,6 @@ const Home = ({ entry, getAsset, fieldsMetaData, boundGetAsset, config, isLoadin
8383
<HomeTemplate data={data} />
8484
</StyleInjector>
8585
);
86-
};
86+
}
8787

8888
export default Home;

src/cms/previews/Story.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import StyleInjector from './StyleInjector';
44
import { StoryTemplate } from '../../templates/Story';
55
import { StoryCard } from '../../components/Story';
66

7-
const Story = ({ entry, widgetFor }) => {
7+
function Story({ entry, widgetFor }) {
88
const { data } = entry.toJS();
99

1010
const excerpt = data.excerpt || data.body;
@@ -29,6 +29,6 @@ const Story = ({ entry, widgetFor }) => {
2929
</div>
3030
</StyleInjector>
3131
);
32-
};
32+
}
3333

3434
export default Story;

src/cms/previews/StyleInjector.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { StyleSheetManager } from 'styled-components';
44
import { GlobalStyle } from '../../styles/globals';
55

66
// Nasty workaround to make Styled Components work with the custom preview
7-
const StyleInjector = ({ children }) => {
7+
function StyleInjector({ children }) {
88
const [iframeRef, setIframeRef] = useState(null);
99

1010
useEffect(() => {
@@ -23,7 +23,7 @@ const StyleInjector = ({ children }) => {
2323
</StyleSheetManager>
2424
)
2525
);
26-
};
26+
}
2727
StyleInjector.propTypes = {
2828
children: PropTypes.node.isRequired
2929
};

src/cms/previews/Tags.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const TagExt = styled(Tag)`
88
background-color: #f9f6ff;
99
`;
1010

11-
const Tags = ({ entry }) => {
11+
function Tags({ entry }) {
1212
const { data } = entry.toJS();
1313
return (
1414
<StyleInjector>
@@ -19,6 +19,6 @@ const Tags = ({ entry }) => {
1919
))}
2020
</StyleInjector>
2121
);
22-
};
22+
}
2323

2424
export default Tags;

0 commit comments

Comments
 (0)