Skip to content

Commit

Permalink
OPHJOD-1107: Refactor project configuration and update translations
Browse files Browse the repository at this point in the history
  • Loading branch information
sauanto committed Nov 29, 2024
1 parent 0f2e75d commit 05a7193
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ dist-ssr
/public/assets
/assets
coverage
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
*.local

# Editor directories and files
Expand All @@ -27,7 +31,3 @@ coverage
*.njsproj
*.sln
*.sw?
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
4 changes: 1 addition & 3 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export default [
sonarjs.configs.recommended,
...tseslint.configs.recommended,
...tseslint.configs.stylistic,
eslintConfigPrettier, // must be last, override other configs
{
plugins: {
'@singlestore/react-hooks-disable-import': singlestoreReactHooksDisableImport,
Expand All @@ -51,13 +50,11 @@ export default [
tsconfigRootDir: __dirname,
},
},

settings: {
react: {
version: 'detect',
},
},

rules: {
'react-refresh/only-export-components': [
'warn',
Expand Down Expand Up @@ -94,4 +91,5 @@ export default [
...hooksPlugin.configs.recommended.rules,
},
},
eslintConfigPrettier, // must be last, override other configs
];
1 change: 0 additions & 1 deletion public/vite.svg

This file was deleted.

2 changes: 1 addition & 1 deletion src/i18n/fi/translation.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"about-us": "Tietoa meistä",
"about-us-and-user-guide": "Tietoa palvelua ja käyttöohjeet",
"about-us-and-user-guide": "Tietoa palvelusta ja käyttöohjeet",
"accept": "Hyväksy",
"accept-preferences": "Hyväksy asetukset",
"accessibility-statement": "Saavutettavuusseloste",
Expand Down
7 changes: 6 additions & 1 deletion src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@ root.render(
<React.StrictMode>
<HelmetProvider>
<ErrorNoteProvider>
<RouterProvider router={router} />
<RouterProvider
router={router}
future={{
v7_startTransition: true,
}}
/>
</ErrorNoteProvider>
</HelmetProvider>
</React.StrictMode>,
Expand Down

0 comments on commit 05a7193

Please sign in to comment.