Skip to content

Commit d75980f

Browse files
Grid -> Box
1 parent 5609832 commit d75980f

10 files changed

Lines changed: 2086 additions & 194 deletions

File tree

eslint.config.js

Lines changed: 40 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,45 @@
1-
import js from '@eslint/js'
2-
import globals from 'globals'
3-
import reactHooks from 'eslint-plugin-react-hooks'
4-
import reactRefresh from 'eslint-plugin-react-refresh'
5-
import tseslint from 'typescript-eslint'
6-
import { defineConfig, globalIgnores } from 'eslint/config'
1+
import globals from "globals";
2+
import tseslint from "typescript-eslint";
3+
import pluginReact from "eslint-plugin-react";
4+
import hooks from "eslint-plugin-react-hooks";
5+
import refresh from "eslint-plugin-react-refresh";
76

8-
export default defineConfig([
9-
globalIgnores(['dist']),
7+
export default tseslint.config(
108
{
11-
files: ['**/*.{ts,tsx}'],
12-
extends: [
13-
js.configs.recommended,
14-
tseslint.configs.recommended,
15-
reactHooks.configs.flat.recommended,
16-
reactRefresh.configs.vite,
17-
],
9+
ignores: ["dist", "node_modules", "jupyter-books", "public"],
10+
},
11+
{
12+
files: ["src/**/*.{ts,tsx}"],
13+
plugins: {
14+
react: pluginReact,
15+
"react-hooks": hooks,
16+
"react-refresh": refresh,
17+
},
18+
settings: {
19+
react: {
20+
version: "detect",
21+
},
22+
},
23+
rules: {
24+
...pluginReact.configs.flat.recommended.rules,
25+
...pluginReact.configs.flat['jsx-runtime'].rules,
26+
...hooks.configs.recommended.rules,
27+
"react-refresh/only-export-components": "warn",
28+
},
1829
languageOptions: {
19-
ecmaVersion: 2020,
20-
globals: globals.browser,
30+
globals: {
31+
...globals.browser,
32+
},
33+
parser: tseslint.parser,
34+
parserOptions: {
35+
project: "tsconfig.app.json",
36+
},
2137
},
2238
},
23-
])
39+
{
40+
files: ["src/components/ModelViewer.tsx"],
41+
rules: {
42+
"react/no-unknown-property": "off",
43+
},
44+
}
45+
);

jupyter-books/main.py

Lines changed: 0 additions & 6 deletions
This file was deleted.

jupyter-books/myst.yml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,17 @@ version: 1
22
project:
33
id: 941772cd-3130-4f6e-91e9-09d342b38ce0
44
title: ConstCorrectness Notes
5-
description: Technical deep dives on C++, Rendering, and Math.
65
github: https://github.com/constcorrectness/constcorrectness.github.io
76

87
site:
98
template: book-theme
10-
# Using 'url' explicitly to satisfy the strict validator
119
nav:
12-
- title: Overview
13-
url: intro
10+
- file: intro # This maps to intro.md
1411

15-
- title: C++ Engineering
16-
children:
17-
- title: The Philosophy of Const
18-
url: const-correctness
19-
20-
- title: Rendering & Math
21-
children:
22-
- title: 3D Projection Math
23-
url: rendering-math
12+
# We will use a flat list first to guarantee the build works.
13+
# Once this passes, we can make it nested.
14+
- file: const-correctness
15+
title: C++ Engineering
16+
17+
- file: rendering-math
18+
title: Rendering & Math

0 commit comments

Comments
 (0)