From 1f28cd2fd4532886f4ae47d3a765eecfdd9b7881 Mon Sep 17 00:00:00 2001 From: Thomas Ruoff Date: Wed, 16 Jun 2021 23:45:42 +0200 Subject: [PATCH] add eslint with nextjs rule --- .eslintrc | 3 + components/mdComponents.tsx | 53 +- package-lock.json | 1615 +++++++++++++++++++++++++++++++++++ package.json | 2 + 4 files changed, 1652 insertions(+), 21 deletions(-) create mode 100644 .eslintrc diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 0000000..15b1ed9 --- /dev/null +++ b/.eslintrc @@ -0,0 +1,3 @@ +{ + "extends": "next" +} diff --git a/components/mdComponents.tsx b/components/mdComponents.tsx index 6550993..9b5b3c6 100644 --- a/components/mdComponents.tsx +++ b/components/mdComponents.tsx @@ -1,31 +1,42 @@ -export default { - h1: (props: any) => ( +const H1 = (props: any) => (

- ), - h2: (props: any) => ( + ) +const H2 = (props: any) => (

- ), - h3: (props: any) => ( -

- ), - h4: (props: any) => ( -

- ), - h5: (props: any) => ( -

- ), - h6: (props: any) => ( + ) +const H3 = (props: any) => ( +

+ ) +const H4 = (props: any) => ( +

+ ) +const H5 = (props: any) => ( +

+ ) +const H6 = (props: any) => (
- ), - ul: (props: any) =>