Skip to content

Commit

Permalink
chore(deps): update dependency eslint-config-airbnb to v19 (#314)
Browse files Browse the repository at this point in the history
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: João Pedro Schmitz <jpedroschmitz@hotmail.com>
  • Loading branch information
3 people authored Nov 27, 2021
1 parent 427c718 commit c4e962d
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 38 deletions.
6 changes: 6 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@
"js": "never",
"jsx": "never"
}
],
"react/function-component-definition": [
2,
{
"namedComponents": "function-declaration"
}
]
},
"overrides": [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"commitizen": "4.2.4",
"cz-conventional-changelog": "3.3.0",
"eslint": "8.3.0",
"eslint-config-airbnb": "18.2.1",
"eslint-config-airbnb": "19.0.1",
"eslint-config-prettier": "8.3.0",
"eslint-import-resolver-typescript": "2.5.0",
"eslint-plugin-import": "2.25.3",
Expand Down
6 changes: 2 additions & 4 deletions src/components/Title.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import React from 'react';
import { BaseComponentProps } from '@/types';

const Title: React.FC<BaseComponentProps> = (props) => {
export default function Title(props: BaseComponentProps) {
const { children } = props;

return <h1>{children}</h1>;
};

export default Title;
}
15 changes: 7 additions & 8 deletions src/pages/404.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import React from 'react';
import { PageProps } from 'gatsby';

const NotFound: React.FC<PageProps> = () => (
<main>
<p>Sorry, page not found!</p>
</main>
);

export default NotFound;
export default function NotFound() {
return (
<main>
<p>Sorry, page not found!</p>
</main>
);
}
25 changes: 12 additions & 13 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
import React from 'react';
import { PageProps } from 'gatsby';

import Title from '@/components/Title';

const Home: React.FC<PageProps> = () => (
<main>
<Title>Hello TypeScript!</Title>
<p>A TypeScript starter for Gatsby. Great for advanced users.</p>
<p>
Follow me on Twitter (
<a href="https://twitter.com/jpedroschmitz">@jpedroschmitz</a>)
</p>
</main>
);

export default Home;
export default function Home() {
return (
<main>
<Title>Hello TypeScript!</Title>
<p>A TypeScript starter for Gatsby. Great for advanced users.</p>
<p>
Follow me on Twitter (
<a href="https://twitter.com/jpedroschmitz">@jpedroschmitz</a>)
</p>
</main>
);
}
25 changes: 13 additions & 12 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5285,23 +5285,24 @@ escodegen@^2.0.0:
optionalDependencies:
source-map "~0.6.1"

eslint-config-airbnb-base@^14.2.1:
version "14.2.1"
resolved "https://registry.yarnpkg.com/eslint-config-airbnb-base/-/eslint-config-airbnb-base-14.2.1.tgz#8a2eb38455dc5a312550193b319cdaeef042cd1e"
integrity sha512-GOrQyDtVEc1Xy20U7vsB2yAoB4nBlfH5HZJeatRXHleO+OS5Ot+MWij4Dpltw4/DyIkqUfqz1epfhVR5XWWQPA==
eslint-config-airbnb-base@^15.0.0:
version "15.0.0"
resolved "https://registry.yarnpkg.com/eslint-config-airbnb-base/-/eslint-config-airbnb-base-15.0.0.tgz#6b09add90ac79c2f8d723a2580e07f3925afd236"
integrity sha512-xaX3z4ZZIcFLvh2oUNvcX5oEofXda7giYmuplVxoOg5A7EXJMrUyqRgR+mhDhPK8LZ4PttFOBvCYDbX3sUoUig==
dependencies:
confusing-browser-globals "^1.0.10"
object.assign "^4.1.2"
object.entries "^1.1.2"
object.entries "^1.1.5"
semver "^6.3.0"

eslint-config-airbnb@18.2.1:
version "18.2.1"
resolved "https://registry.yarnpkg.com/eslint-config-airbnb/-/eslint-config-airbnb-18.2.1.tgz#b7fe2b42f9f8173e825b73c8014b592e449c98d9"
integrity sha512-glZNDEZ36VdlZWoxn/bUR1r/sdFKPd1mHPbqUtkctgNG4yT2DLLtJ3D+yCV+jzZCc2V1nBVkmdknOJBZ5Hc0fg==
eslint-config-airbnb@19.0.1:
version "19.0.1"
resolved "https://registry.yarnpkg.com/eslint-config-airbnb/-/eslint-config-airbnb-19.0.1.tgz#c4e39150a22571a78b27f701fd40b67addf21d2a"
integrity sha512-ooV8Vdt3gmV6hCSJutRw5beArd56Cd++vvy7j0Y7DBhUKqcTyI7cWNcJpCJlcftGPRLtzdU0hNMtquOUSSm8nA==
dependencies:
eslint-config-airbnb-base "^14.2.1"
eslint-config-airbnb-base "^15.0.0"
object.assign "^4.1.2"
object.entries "^1.1.2"
object.entries "^1.1.5"

eslint-config-prettier@8.3.0:
version "8.3.0"
Expand Down Expand Up @@ -9909,7 +9910,7 @@ object.assign@^4.1.0, object.assign@^4.1.2:
has-symbols "^1.0.1"
object-keys "^1.1.1"

object.entries@^1.1.2, object.entries@^1.1.4, object.entries@^1.1.5:
object.entries@^1.1.4, object.entries@^1.1.5:
version "1.1.5"
resolved "https://registry.yarnpkg.com/object.entries/-/object.entries-1.1.5.tgz#e1acdd17c4de2cd96d5a08487cfb9db84d881861"
integrity sha512-TyxmjUoZggd4OrrU1W66FMDG6CuqJxsFvymeyXI51+vQLN67zYfZseptRge703kKQdo4uccgAKebXFcRCzk4+g==
Expand Down

1 comment on commit c4e962d

@vercel
Copy link

@vercel vercel bot commented on c4e962d Nov 27, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.