diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f3a5c67cf..07aa82603 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,11 +25,11 @@ jobs: - name: 🚧 Install Node dependencies run: cd client/web && npm install - - name: 👷 Build Graphite web client + - name: 🌐 Build Graphite web code run: cd client/web && npm run build - name: 👕 Lint Graphite web formatting - run: cd client/web && npm run lint + run: export NODE_ENV=production && cd client/web && npm run lint - name: 🔬 Check Rust formatting run: cargo fmt --all -- --check diff --git a/.vscode/settings.json b/.vscode/settings.json index 0492aeb12..3dd2cf76e 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -26,6 +26,9 @@ ], "vetur.format.options.useTabs": true, "eslint.format.enable": true, + "eslint.workingDirectories": [ + "./client/web" + ], "files.eol": "\n", "html.format.wrapLineLength": 200, "vetur.validation.interpolation": false, diff --git a/client/web/src/App.vue b/client/web/src/App.vue index 0dd2056c7..20588709d 100644 --- a/client/web/src/App.vue +++ b/client/web/src/App.vue @@ -29,7 +29,7 @@ export default defineComponent({ methods: { async greet() { const { greet } = await wasm; - console.log(greet("Graphite")); + greet("Graphite"); }, }, }); diff --git a/client/web/src/components/panels/Document.vue b/client/web/src/components/panels/Document.vue index 220d25f51..218d1a582 100644 --- a/client/web/src/components/panels/Document.vue +++ b/client/web/src/components/panels/Document.vue @@ -328,7 +328,8 @@ export default defineComponent({ select_tool(toolName); }, async viewModeChanged(toolIndex: number) { - console.log(`The view mode has been changed to index match the icon at index ${toolIndex}`); + function todo(_: number) { return _; } + todo(toolIndex); }, }, mounted() {