Skip to content

Commit ffdb6df

Browse files
committed
Fix linting
1 parent 80f1821 commit ffdb6df

File tree

18 files changed

+1024
-32
lines changed

18 files changed

+1024
-32
lines changed

.eslintrc.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ module.exports = {
22
env: {
33
es6: true,
44
node: true,
5-
mocha: true,
5+
browser: true,
66
},
7-
extends: ["eslint:recommended", "prettier"],
7+
extends: ["eslint:recommended", "prettier", "plugin:react/recommended"],
88
parserOptions: {
99
ecmaVersion: 2018,
1010
sourceType: "module",
@@ -23,4 +23,9 @@ module.exports = {
2323
},
2424
],
2525
},
26+
settings: {
27+
react: {
28+
version: "detect",
29+
},
30+
},
2631
};

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/build
2+
/.docusaurus

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# nucleoid.com
1+
# nucleoid.com

babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
2-
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
2+
presets: [require.resolve("@docusaurus/core/lib/babel/preset")],
33
};

docs/tutorial-basics/create-a-document.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Add metadata to customize the sidebar label and position:
3030

3131
```md title="docs/hello.md" {1-4}
3232
---
33-
sidebar_label: 'Hi!'
33+
sidebar_label: "Hi!"
3434
sidebar_position: 3
3535
---
3636

@@ -45,10 +45,10 @@ It is also possible to create your sidebar explicitly in `sidebars.js`:
4545
module.exports = {
4646
tutorialSidebar: [
4747
{
48-
type: 'category',
49-
label: 'Tutorial',
48+
type: "category",
49+
label: "Tutorial",
5050
// highlight-next-line
51-
items: ['hello'],
51+
items: ["hello"],
5252
},
5353
],
5454
};

docs/tutorial-basics/create-a-page.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ Add **Markdown or React** files to `src/pages` to create a **standalone page**:
1515
Create a file at `src/pages/my-react-page.js`:
1616

1717
```jsx title="src/pages/my-react-page.js"
18-
import React from 'react';
19-
import Layout from '@theme/Layout';
18+
import React from "react";
19+
import Layout from "@theme/Layout";
2020

2121
export default function MyReactPage() {
2222
return (

docs/tutorial-extras/manage-docs-versions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ module.exports = {
3434
items: [
3535
// highlight-start
3636
{
37-
type: 'docsVersionDropdown',
37+
type: "docsVersionDropdown",
3838
},
3939
// highlight-end
4040
],

docs/tutorial-extras/translate-your-site.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ Modify `docusaurus.config.js` to add support for the `fr` locale:
1313
```js title="docusaurus.config.js"
1414
module.exports = {
1515
i18n: {
16-
defaultLocale: 'en',
17-
locales: ['en', 'fr'],
16+
defaultLocale: "en",
17+
locales: ["en", "fr"],
1818
},
1919
};
2020
```
@@ -60,7 +60,7 @@ module.exports = {
6060
items: [
6161
// highlight-start
6262
{
63-
type: 'localeDropdown',
63+
type: "localeDropdown",
6464
},
6565
// highlight-end
6666
],

docusaurus.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const config = {
3434
/** @type {import('@docusaurus/preset-classic').Options} */
3535
({
3636
docs: {
37-
routeBasePath: '/',
37+
routeBasePath: "/",
3838
sidebarPath: require.resolve("./sidebars.js"),
3939
editUrl:
4040
"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/",
@@ -57,6 +57,10 @@ const config = {
5757
},
5858
navbar: {
5959
items: [
60+
{ to: "/docs", label: "HOME", position: "left" },
61+
{ to: "/docs", label: "GET STARTED", position: "left" },
62+
{ to: "/docs", label: "LEARN", position: "left" },
63+
{ to: "/docs", label: "API", position: "left" },
6064
{
6165
href: "https://dev.to/nucleoid",
6266
label: "BLOG",

0 commit comments

Comments
 (0)