Skip to content
This repository has been archived by the owner on Oct 9, 2024. It is now read-only.

Commit

Permalink
try again
Browse files Browse the repository at this point in the history
  • Loading branch information
mohebifar committed Mar 1, 2024
1 parent d0590ea commit cd18cd5
Show file tree
Hide file tree
Showing 11 changed files with 166 additions and 69 deletions.
10 changes: 0 additions & 10 deletions apps/docs/next.config.js

This file was deleted.

13 changes: 13 additions & 0 deletions apps/docs/next.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import nextra from "nextra";

const withNextra = nextra({
theme: "nextra-theme-docs",
themeConfig: "./theme.config.jsx",
});

export default withNextra({
reactStrictMode: false,
eslint: {
ignoreDuringBuilds: true,
},
});
13 changes: 6 additions & 7 deletions apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@
"lint": "eslint . --max-warnings 0"
},
"dependencies": {
"@babel/core": "^7.23.9",
"@babel/parser": "^7.24.0",
"@babel/plugin-syntax-jsx": "^7.23.3",
"@babel/standalone": "^7.24.0",
"@codesandbox/sandpack-react": "^2.13.4",
"@react-unforget/babel-plugin": "0.1.0-dev.4",
"@react-unforget/compiler": "0.1.0-dev.5",
"@react-unforget/babel-plugin": "0.1.0-dev.6",
"@react-unforget/compiler": "0.1.0-dev.7",
"@react-unforget/runtime": "0.1.0-dev.4",
"@vercel/analytics": "^1.2.2",
"classnames": "^2.5.1",
Expand All @@ -29,9 +28,9 @@
"@next/eslint-plugin-next": "^14.0.4",
"@react-unforget/eslint-config": "*",
"@react-unforget/typescript-config": "*",
"@types/eslint": "^8.56.1",
"@types/node": "^20.10.6",
"@types/react": "^18.2.46",
"@types/eslint": "^8.56.5",
"@types/node": "^20.11.24",
"@types/react": "^18.2.61",
"@types/react-dom": "^18.2.18",
"autoprefixer": "^10.4.17",
"daisyui": "^4.7.2",
Expand Down
34 changes: 17 additions & 17 deletions apps/docs/pages/examples/counter-with-mutated-dependency.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DynamicLiveCodeSandPack } from "@components/DynamicLiveCodeSandPack";
import { DynamicLiveCodeSandPack } from "components/DynamicLiveCodeSandPack";

### Counter with Mutation Tracking

Expand All @@ -10,22 +10,22 @@ React Unforget can trace statements that will mutate a variable.
export default function CounterWithMutationTracking() {
const [state, setState] = useState(0);
let text = "The number is: ";
if (state % 2 === 0) {
text += "even";
} else {
text += "odd";
}
return (
<div>
<button onClick={() => setState(state + 1)}>Increment</button>
<div>
<span>Count: {state}</span> {text}
</div>
</div>
);
let text = "The number is: ";
if (state % 2 === 0) {
text += "even";
} else {
text += "odd";
}
return (
<div>
<button onClick={() => setState(state + 1)}>Increment</button>
<div>
<span>Count: {state}</span> {text}
</div>
</div>
);
}
`}

Expand Down
2 changes: 1 addition & 1 deletion apps/docs/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
"**/*.js",
"**/*.jsx",
"**/*.mdx"
],
, "next.config.mjs" ],
"exclude": ["node_modules"]
}
3 changes: 3 additions & 0 deletions apps/docs/vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"public": true
}
2 changes: 1 addition & 1 deletion packages/babel-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@react-unforget/eslint-config": "*",
"@react-unforget/jest-config": "*",
"@react-unforget/typescript-config": "*",
"@types/react": "^18.2.58",
"@types/react": "^18.2.61",
"react": "^18.2.0",
"tsup": "^8.0.2"
},
Expand Down
5 changes: 2 additions & 3 deletions packages/compiler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@
},
"dependencies": {
"@babel/helper-validator-identifier": "^7.22.20",
"@babel/parser": "^7.23.9",
"@babel/standalone": "^7.23.10",
"@babel/traverse": "^7.23.9",
"@babel/parser": "^7.24.0",
"@babel/traverse": "^7.24.0",
"@babel/types": "^7.24.0"
},
"publishConfig": {
Expand Down
6 changes: 3 additions & 3 deletions packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
"react-internal.js"
],
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^7.1.0",
"@typescript-eslint/parser": "^7.1.0",
"@vercel/style-guide": "^5.1.0",
"eslint-config-turbo": "^1.11.3",
"eslint-config-prettier": "^9.1.0",
"eslint-config-turbo": "^1.11.3",
"eslint-plugin-only-warn": "^1.1.0",
"@typescript-eslint/parser": "^6.17.0",
"@typescript-eslint/eslint-plugin": "^6.17.0",
"typescript": "^5.3.3"
}
}
2 changes: 1 addition & 1 deletion packages/runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@react-unforget/eslint-config": "*",
"@react-unforget/jest-config": "*",
"@react-unforget/typescript-config": "*",
"@types/react": "^18.2.58",
"@types/react": "^18.2.61",
"react": "^18.2.0",
"tsup": "^8.0.2"
},
Expand Down
Loading

0 comments on commit cd18cd5

Please sign in to comment.