mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-14 06:57:35 +08:00
add noImplicitOverride and noPropertyAccessFromIndexSignature compiler options
This commit is contained in:
@@ -1292,5 +1292,5 @@ export const ALL_CURRENCIES: Record<string, CurrencyInfo> = {
|
||||
};
|
||||
|
||||
export const DEFAULT_CURRENCY_SYMBOL: string = '¤';
|
||||
export const DEFAULT_CURRENCY_CODE: string = ALL_CURRENCIES.USD.code;
|
||||
export const DEFAULT_CURRENCY_CODE: string = ALL_CURRENCIES['USD'].code;
|
||||
export const PARENT_ACCOUNT_CURRENCY_PLACEHOLDER: string = '---';
|
||||
|
||||
@@ -6,8 +6,10 @@
|
||||
"types": ["vite/client"],
|
||||
"strict": true,
|
||||
"noImplicitReturns": true,
|
||||
"noImplicitOverride": true,
|
||||
"noUnusedLocals": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"noPropertyAccessFromIndexSignature": true,
|
||||
"paths": {
|
||||
"@/*": ["./src/*"]
|
||||
}
|
||||
|
||||
+2
-2
@@ -16,14 +16,14 @@ const BUILD_DIR = resolve(__dirname, './dist',);
|
||||
|
||||
export default defineConfig(() => {
|
||||
const licenseContent = fs.readFileSync('./LICENSE', { encoding: 'utf-8' });
|
||||
const buildUnixTime = process.env.buildUnixTime || '';
|
||||
const buildUnixTime = process.env['buildUnixTime'] || '';
|
||||
|
||||
const options: UserConfig = {
|
||||
root: SRC_DIR,
|
||||
publicDir: PUBLIC_DIR,
|
||||
base: './',
|
||||
define: {
|
||||
__EZBOOKKEEPING_IS_PRODUCTION__: process.env.NODE_ENV === 'production',
|
||||
__EZBOOKKEEPING_IS_PRODUCTION__: process.env['NODE_ENV'] === 'production',
|
||||
__EZBOOKKEEPING_VERSION__: JSON.stringify(packageFile.version),
|
||||
__EZBOOKKEEPING_BUILD_UNIX_TIME__: JSON.stringify(buildUnixTime),
|
||||
__EZBOOKKEEPING_BUILD_COMMIT_HASH__: JSON.stringify(git.short()),
|
||||
|
||||
Reference in New Issue
Block a user