Skip to content

Commit

Permalink
add linting to site
Browse files Browse the repository at this point in the history
  • Loading branch information
xaviergonz committed Mar 16, 2024
1 parent fbabaa3 commit f640146
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 7 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ module.exports = {
"plugin:import/warnings",
"plugin:import/typescript",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:react-hooks/recommended",
],

Expand Down
1 change: 0 additions & 1 deletion apps/site/docs/examples/clientServer/app.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { observer } from "mobx-react"
import React from "react"
import { AppInstance } from "./appInstance"

// we will expose both app instances in the ui
Expand Down
2 changes: 1 addition & 1 deletion apps/site/docs/examples/clientServer/appInstance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
SerializedActionCallWithModelIdOverrides,
} from "mobx-keystone"
import { observer } from "mobx-react"
import React, { useState } from "react"
import { useState } from "react"
import { TodoListView } from "../todoList/app"
import { cancelledActionSymbol, LogsView } from "../todoList/logs"
import { TodoList } from "../todoList/store"
Expand Down
1 change: 1 addition & 0 deletions apps/site/docs/examples/todoList/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ export function createRootStore(): TodoList {
registerRootStore(rootStore)

// we can also connect the store to the redux dev tools
// eslint-disable-next-line @typescript-eslint/no-var-requires
const remotedev = require("remotedev")
const connection = remotedev.connectViaExtension({
name: "Todo List Example",
Expand Down
1 change: 0 additions & 1 deletion apps/site/docs/examples/yjsBinding/app.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { observer } from "mobx-react"
import React from "react"
import { AppInstance } from "./appInstance"

export const App = observer(() => {
Expand Down
3 changes: 2 additions & 1 deletion apps/site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"scripts": {
"start": "docusaurus start",
"build": "docusaurus build && shx cp -r ./copy-to-build/. ./build",
"serve": "docusaurus serve"
"serve": "docusaurus serve",
"lint": "cd ../.. && yarn eslint \"apps/site/{src,docs}/**/*.{ts,tsx}\""
},
"dependencies": {
"@docusaurus/core": "^3.1.1",
Expand Down
1 change: 0 additions & 1 deletion apps/site/src/components/ArrowUpIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import CaretUpFillSVG from "bootstrap-icons/icons/caret-up-fill.svg"
import * as React from "react"

export function ArrowUpIcon() {
return <CaretUpFillSVG className="icon" style={{ color: "var(--ifm-color-success)" }} />
Expand Down
1 change: 0 additions & 1 deletion apps/site/src/components/CheckIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import CheckCircleSVG from "bootstrap-icons/icons/check-circle.svg"
import * as React from "react"

export function CheckIcon() {
return <CheckCircleSVG className="icon" style={{ color: "var(--ifm-color-success)" }} />
Expand Down
1 change: 0 additions & 1 deletion apps/site/src/components/RedXIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import XCircleSVG from "bootstrap-icons/icons/x-circle.svg"
import * as React from "react"

export function RedXIcon() {
return <XCircleSVG className="icon" style={{ color: "var(--ifm-color-danger)" }} />
Expand Down

0 comments on commit f640146

Please sign in to comment.