Skip to content

Commit

Permalink
Upgrade node + deps (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
av-alexistoledo authored Jan 20, 2025
2 parents e640813 + 68630ba commit 7401613
Show file tree
Hide file tree
Showing 30 changed files with 2,214 additions and 2,377 deletions.
28 changes: 0 additions & 28 deletions client/.eslintrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion client/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# syntax=docker/dockerfile:1
FROM 534003348933.dkr.ecr.eu-west-1.amazonaws.com/nodejs:19-dev-latest as builder
FROM node:22-bullseye-slim as builder

WORKDIR /usr/src/app

Expand Down
2 changes: 1 addition & 1 deletion client/e2e/trackBallot.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ test("tracking a non-existing ballot shows an error", async ({ page }) => {
await page.locator("#tracking-code").fill("abcdef");
await page.getByRole("button", { name: "Track my ballot" }).click();
await expect(page.locator(".Error__Title")).toContainText(
"Tracking code not found"
"Tracking code not found",
);
await page.locator("#tracking-code").fill("hijklm");
});
1 change: 0 additions & 1 deletion client/e2e/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"extends": "@vue/tsconfig/tsconfig.node.json",
"include": ["./**/*"],
"compilerOptions": {
"ignoreDeprecations": "5.0"
Expand Down
2 changes: 1 addition & 1 deletion client/e2e/verifyBallot.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ test("verifying with an invalid verification code", async ({ page }) => {
await page.locator("#verification-code").fill("invalid-code");
await page.getByRole("button", { name: "Start the Test" }).click();
await expect(page.locator(".Error__Title")).toContainText(
"Testing code not found"
"Testing code not found",
);
await page.locator("#verification-code").fill("invalid-code");
});
50 changes: 50 additions & 0 deletions client/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
import pluginVue from "eslint-plugin-vue";
import vueTsEslintConfig from "@vue/eslint-config-typescript";
import pluginVitest from "@vitest/eslint-plugin";
import skipFormatting from "@vue/eslint-config-prettier/skip-formatting";

export default [
{
name: "app/files-to-lint",
files: ["src/**/*.{ts,mts,tsx,vue}"],
},

{
name: "app/files-to-ignore",
ignores: [
"**/dist/**",
"**/dist-ssr/**",
"**/coverage/**",
"**/storybook-static/**",
],
},

...pluginVue.configs["flat/essential"],
...vueTsEslintConfig(),

{
...pluginVitest.configs.recommended,
files: ["src/**/*.test.ts"],
},

skipFormatting,

{
files: ["**/*.{ts,mts,tsx,vue}"],
rules: {
"@typescript-eslint/no-unused-expressions": "off",
"@typescript-eslint/no-explicit-any": "off",
"vue/multi-word-component-names": "off",
"vitest/valid-expect": "off",

"@typescript-eslint/no-unused-vars": [
"error",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_",
},
],
},
},
];
2 changes: 1 addition & 1 deletion client/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
Expand Down
Loading

0 comments on commit 7401613

Please sign in to comment.