Skip to content

Commit

Permalink
chore: tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
GZTimeWalker committed May 13, 2024
1 parent dd28a78 commit 113f060
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 61 deletions.
4 changes: 2 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"react-dom": "^18.3.1"
},
"devDependencies": {
"@types/node": "^20.12.7",
"@types/react": "^18.3.1",
"@types/node": "^20.12.11",
"@types/react": "^18.3.2",
"typescript": "^5.4.5"
}
}
22 changes: 11 additions & 11 deletions docs/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions src/GZCTF/ClientApp/.vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{
"recommendations": [
"Lokalise.i18n-ally"
]
"recommendations": ["Lokalise.i18n-ally"]
}
6 changes: 2 additions & 4 deletions src/GZCTF/ClientApp/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
"i18n-ally.pathMatcher": "{locale}/{namespaces}.{ext}",
"i18n-ally.keystyle": "nested",
"i18n-ally.extract.keyPrefix": "{fileNameWithoutExt}",
"i18n-ally.localesPaths": [
"src/locales"
],
"i18n-ally.localesPaths": ["src/locales"],
"i18n-ally.extract.autoDetect": true,
"i18n-ally.extract.keyMaxLength": 20,
"i18n-ally.extract.keygenStyle": "snake_case",
Expand All @@ -19,5 +17,5 @@
"**/*.less",
"node_modules/@mantine/core/styles.css"
],
"editor.tabSize": 2,
"editor.tabSize": 2
}
2 changes: 1 addition & 1 deletion src/GZCTF/ClientApp/postcss.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ export default {
autoRem: true,
},
},
};
}
49 changes: 11 additions & 38 deletions src/GZCTF/ClientApp/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
{
"compilerOptions": {
"target": "esnext",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"types": [
"vite/client"
],
"lib": ["dom", "dom.iterable", "esnext"],
"types": ["vite/client"],
"allowJs": false,
"skipLibCheck": true,
"strict": true,
Expand All @@ -24,36 +18,15 @@
"allowSyntheticDefaultImports": true,
"baseUrl": ".",
"paths": {
"@Api": [
"src/Api.ts"
],
"@App": [
"src/App"
],
"@Components/*": [
"src/components/*"
],
"@Pages/*": [
"src/pages/*"
],
"@Utils/*": [
"src/utils/*"
],
"@Resources/*": [
"src/resources/*"
],
"@Styles/*": [
"src/styles/components/*",
"src/styles/shared/*"
],
"@Api": ["src/Api.ts"],
"@App": ["src/App"],
"@Components/*": ["src/components/*"],
"@Pages/*": ["src/pages/*"],
"@Utils/*": ["src/utils/*"],
"@Resources/*": ["src/resources/*"],
"@Styles/*": ["src/styles/components/*", "src/styles/shared/*"]
}
},
"include": [
"vite.config.mts",
"**/*.ts",
"**/*.tsx"
],
"exclude": [
"node_modules"
]
"include": ["vite.config.mts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
}
4 changes: 2 additions & 2 deletions src/GZCTF/ClientApp/vite.config.mts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import i18nextLoader from '@kainstar/vite-plugin-i18next-loader'
import eslintPlugin from '@nabla/vite-plugin-eslint'
import react from '@vitejs/plugin-react'
import process from 'process'
import { defineConfig, loadEnv } from 'vite'
import i18nextLoader from '@kainstar/vite-plugin-i18next-loader'
import Pages from 'vite-plugin-pages'
import { prismjsPlugin } from 'vite-plugin-prismjs'
import webfontDownload from 'vite-plugin-webfont-dl'
Expand Down Expand Up @@ -64,7 +64,7 @@ export default defineConfig(({ mode }) => {
}),
i18nextLoader({
paths: ['./src/locales'],
include: ['**/*.json']
include: ['**/*.json'],
}),
],
}
Expand Down

0 comments on commit 113f060

Please sign in to comment.