Skip to content

Commit

Permalink
fix: website eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
aladdin-add committed Nov 29, 2021
1 parent 6f0e341 commit 6b8be5b
Show file tree
Hide file tree
Showing 6 changed files with 764 additions and 40 deletions.
7 changes: 7 additions & 0 deletions docs/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,11 @@ module.exports = {
extends: [
'plugin:@next/next/recommended',
],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
ecmaFeatures: {
jsx: true,
}
}
};
6 changes: 3 additions & 3 deletions docs/components/features.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import styles from "./features.module.css";
import React from 'react';
import styles from './features.module.css';

const Feature = ({ text, icon }) => (
<div className={styles.feature}>
Expand Down Expand Up @@ -723,7 +723,7 @@ const Logo = () => (
fill="#1F9CF0"
/>
</g>
<g style={{ mixBlendMode: "overlay" }} opacity="0.25">
<g style={{ mixBlendMode: 'overlay' }} opacity="0.25">
<path
fillRule="evenodd"
clipRule="evenodd"
Expand Down
8 changes: 4 additions & 4 deletions docs/components/release.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import { Box, Text } from "@chakra-ui/react";
import Markdown from "markdown-to-jsx";
import { Box, Text } from '@chakra-ui/react';
import Markdown from 'markdown-to-jsx';

const Release = (props) => {
const { url, name, date, body } = props;

return (
<Box>
<Text fontWeight="bold" fontSize="3xl">
#{" "}
#{' '}
<a href={url} target="_blank" rel="noopener">
{name}
</a>
</Text>
<Text>
Published on{" "}
Published on{' '}
<Text as="span" color="blue.500">{`${new Date(
date
).toDateString()}.`}</Text>
Expand Down
3 changes: 2 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
},
"devDependencies": {
"@next/eslint-plugin-next": "^11.1.2",
"compose-function": "^3.0.3"
"compose-function": "^3.0.3",
"eslint-config-next": "^12.0.4"
}
}
19 changes: 9 additions & 10 deletions docs/pages/_app.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { DokzProvider, GithubLink, ColorModeSwitch } from "dokz";
import React, { Fragment } from "react";
import Head from "next/head";
import { ChakraProvider } from "@chakra-ui/react";
import Logo from "../components/logo";
import { DokzProvider, GithubLink, ColorModeSwitch } from 'dokz';
import React, { Fragment } from 'react';
import Head from 'next/head';
import { ChakraProvider } from '@chakra-ui/react';
import Logo from '../components/logo';

export default function App(props) {
const { Component, pageProps } = props;
Expand All @@ -22,13 +22,12 @@ export default function App(props) {
<ColorModeSwitch key="1" />,
]}
sidebarOrdering={{
"index.mdx": true,
"api-reference.mdx": true,
"customization.mdx": true,
"change-log.mdx": true,
'index.mdx': true,
'api-reference.mdx': true,
'customization.mdx': true,
'change-log.mdx': true,
}}
>

<Component {...pageProps} />
</DokzProvider>
</ChakraProvider>
Expand Down
Loading

0 comments on commit 6b8be5b

Please sign in to comment.