diff --git a/.babelrc b/.babelrc deleted file mode 100644 index de8ffde..0000000 --- a/.babelrc +++ /dev/null @@ -1,6 +0,0 @@ -{ - "presets": [ - "@babel/preset-env", - "@babel/preset-react" - ] -} \ No newline at end of file diff --git a/TODO.txt b/TODO.txt index 19679d7..29ef061 100644 --- a/TODO.txt +++ b/TODO.txt @@ -1,8 +1,11 @@ TODO: - Make sure component works right - bundled, of course - webpack? + WebGPU formulate is expensive + Mirror pass clicks bug + + Minify bundles + Naming "matrix" for the github repo, "digital-rain" and "DigitalRain" for everything else Minimum react requirement? + Retire fetchLibraries? Move off of regl Unify implementations? Responsive changes @@ -14,10 +17,10 @@ TODO: return boolean of whether all deltas are simple Resource changes are simple if they're cached and loaded, false otherwise remake the pipeline if anything returns false - Create multiple distributions + Core vs full core One embedded MSDF, combined from the two main glyph sets and their configs - fun + full Other MSDFs and configs and then one with built-in MSDF generation (TTF + glyphString) --> MSDF diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 0000000..c957a61 --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,31 @@ +import js from "@eslint/js"; +import globals from "globals"; +import reactHooks from "eslint-plugin-react-hooks"; +import reactRefresh from "eslint-plugin-react-refresh"; + +export default [ + { ignores: ["dist", "lib"] }, + { + files: ["**/*.{js,jsx,mjs}"], + languageOptions: { + ecmaVersion: 2020, + globals: globals.browser, + parserOptions: { + ecmaVersion: "latest", + ecmaFeatures: { jsx: true }, + sourceType: "module", + }, + }, + plugins: { + "react-hooks": reactHooks, + "react-refresh": reactRefresh, + }, + rules: { + ...js.configs.recommended.rules, + ...reactHooks.configs.recommended.rules, + "no-unused-vars": "off", + "no-unused-labels": "off", + "react-refresh/only-export-components": ["warn", { allowConstantExport: true }], + }, + }, +]; diff --git a/index.html b/index.html index 6a365b6..8fb440c 100644 --- a/index.html +++ b/index.html @@ -5,19 +5,27 @@ - +