diff --git a/frontend/eslint.config.js b/frontend/eslint.config.js index 037f340..f721dd2 100644 --- a/frontend/eslint.config.js +++ b/frontend/eslint.config.js @@ -16,7 +16,7 @@ export default tseslint.config( ], files: ["**/*.{ts,tsx}"], languageOptions: { - ecmaVersion: 2020, + ecmaVersion: 2022, globals: globals.browser, }, plugins: { diff --git a/frontend/src/pages/resource_details_page.tsx b/frontend/src/pages/resource_details_page.tsx index db31e3b..a8a949a 100644 --- a/frontend/src/pages/resource_details_page.tsx +++ b/frontend/src/pages/resource_details_page.tsx @@ -494,7 +494,7 @@ function Article({ resource }: { resource: ResourceDetails }) { }, }} > - {resource.article} + {resource.article.replaceAll("\n", " \n")} ); diff --git a/frontend/tsconfig.app.json b/frontend/tsconfig.app.json index 358ca9b..803dbea 100644 --- a/frontend/tsconfig.app.json +++ b/frontend/tsconfig.app.json @@ -1,9 +1,9 @@ { "compilerOptions": { "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo", - "target": "ES2020", + "target": "ES2022", "useDefineForClassFields": true, - "lib": ["ES2020", "DOM", "DOM.Iterable"], + "lib": ["ES2022", "DOM", "DOM.Iterable"], "module": "ESNext", "skipLibCheck": true,