Fix Bezier-rs interactive demos and migrate its Webpack bundler to Vite

This commit is contained in:
Keavon Chambers
2024-01-04 23:13:40 -08:00
parent bbece3fb65
commit d268afb7fb
27 changed files with 3580 additions and 3013 deletions
+5 -5
View File
@@ -12,7 +12,7 @@ module.exports = {
],
plugins: ["import", "@typescript-eslint", "prettier"],
settings: {
"import/parsers": { "@typescript-eslint/parser": [".ts", ".tsx"] },
"import/parsers": { "@typescript-eslint/parser": [".ts"] },
"import/resolver": { typescript: true, node: true },
},
parser: "@typescript-eslint/parser",
@@ -32,16 +32,16 @@ module.exports = {
"!.*.ts",
],
overrides: [
{
files: ["*.js"],
rules: { "@typescript-eslint/explicit-function-return-type": ["off"] },
},
{
files: ["*.svelte"],
parser: "svelte-eslint-parser",
// Parse the `<script>` in `.svelte` as TypeScript by adding the following configuration.
parserOptions: { parser: "@typescript-eslint/parser" },
},
{
extends: ["plugin:@typescript-eslint/disable-type-checked"],
files: [".eslintrc.cjs"],
},
],
rules: {
// Standard ESLint config (for ordinary JS syntax linting)
+19
View File
@@ -0,0 +1,19 @@
{
"singleQuote": false,
"useTabs": true,
"tabWidth": 4,
"printWidth": 200,
"plugins": [
"prettier-plugin-svelte"
],
"overrides": [
{
"files": [
"*.svelte"
],
"options": {
"parser": "svelte"
}
}
]
}
+1 -2
View File
@@ -53,12 +53,11 @@
"ts-node": "^10.9.1",
"typescript": "^5.0.4",
"vite": "^4.4.5",
"vite-multiple-assets": "^1.2.6"
"vite-multiple-assets": "1.2.6"
},
"optionalDependencies": {
"wasm-pack": "0.12.1"
},
"//": "Notes about dependency issues and incompatibilities should be added here when needed.",
"homepage": "https://graphite.rs",
"license": "Apache-2.0",
"repository": {
-1
View File
@@ -3,7 +3,6 @@
"target": "ES2020",
"module": "esnext",
"strict": true,
"jsx": "preserve",
"importHelpers": true,
"moduleResolution": "node",
"experimentalDecorators": true,