Formatting with trailing comma
This commit is contained in:
parent
48948a180a
commit
cfb5564830
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"useTabs": true,
|
"useTabs": true,
|
||||||
"singleQuote": true,
|
"singleQuote": true,
|
||||||
"trailingComma": "none",
|
"trailingComma": "es5",
|
||||||
"printWidth": 100,
|
"printWidth": 100,
|
||||||
"plugins": ["prettier-plugin-svelte"],
|
"plugins": ["prettier-plugin-svelte"],
|
||||||
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
|
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
|
||||||
|
@ -15,19 +15,19 @@ export default [
|
|||||||
languageOptions: {
|
languageOptions: {
|
||||||
globals: {
|
globals: {
|
||||||
...globals.browser,
|
...globals.browser,
|
||||||
...globals.node
|
...globals.node,
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
files: ['**/*.svelte'],
|
files: ['**/*.svelte'],
|
||||||
languageOptions: {
|
languageOptions: {
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
parser: ts.parser
|
parser: ts.parser,
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ignores: ['build/', '.svelte-kit/', 'dist/']
|
ignores: ['build/', '.svelte-kit/', 'dist/'],
|
||||||
}
|
},
|
||||||
];
|
];
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
|
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
|
||||||
extends: ['local>renovate-bot/renovate-config']
|
extends: ['local>renovate-bot/renovate-config'],
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,7 @@ export async function handle({ event, resolve }) {
|
|||||||
route: event.route.id,
|
route: event.route.id,
|
||||||
method: event.request.method,
|
method: event.request.method,
|
||||||
userAgent: event.request.headers.get('user-agent'),
|
userAgent: event.request.headers.get('user-agent'),
|
||||||
clientIP: event.getClientAddress()
|
clientIP: event.getClientAddress(),
|
||||||
};
|
};
|
||||||
if (fromRequest) {
|
if (fromRequest) {
|
||||||
log.trace(context, 'using incomming request-id');
|
log.trace(context, 'using incomming request-id');
|
||||||
@ -36,7 +36,7 @@ export async function handle({ event, resolve }) {
|
|||||||
executionTime: `${executionTime}ms`,
|
executionTime: `${executionTime}ms`,
|
||||||
status: response.status,
|
status: response.status,
|
||||||
size: response.headers.get('content-length'),
|
size: response.headers.get('content-length'),
|
||||||
...context
|
...context,
|
||||||
},
|
},
|
||||||
'finished request'
|
'finished request'
|
||||||
);
|
);
|
||||||
|
@ -6,7 +6,7 @@ import type { MaybePromise } from '@sveltejs/kit';
|
|||||||
export const log = bunyan.createLogger({
|
export const log = bunyan.createLogger({
|
||||||
name: 'fotochallenge',
|
name: 'fotochallenge',
|
||||||
level: process.env.NODE_ENV === 'production' ? 'info' : 'debug',
|
level: process.env.NODE_ENV === 'production' ? 'info' : 'debug',
|
||||||
src: true
|
src: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
function safePath(basePath: string, name: string): boolean {
|
function safePath(basePath: string, name: string): boolean {
|
||||||
|
@ -69,7 +69,7 @@ export const actions = {
|
|||||||
});
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
success: true
|
success: true,
|
||||||
};
|
};
|
||||||
}
|
},
|
||||||
};
|
};
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
const siPrefixes = new Map([
|
const siPrefixes = new Map([
|
||||||
[1_000_000, 'M'],
|
[1_000_000, 'M'],
|
||||||
[1_000, 'k']
|
[1_000, 'k'],
|
||||||
]);
|
]);
|
||||||
const fileSize = (files: FileList) => {
|
const fileSize = (files: FileList) => {
|
||||||
const size = Array.from(files)
|
const size = Array.from(files)
|
||||||
|
@ -11,8 +11,8 @@ const config = {
|
|||||||
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
|
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
|
||||||
// If your environment is not supported, or you settled on a specific environment, switch out the adapter.
|
// If your environment is not supported, or you settled on a specific environment, switch out the adapter.
|
||||||
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
|
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
|
||||||
adapter: adapter()
|
adapter: adapter(),
|
||||||
}
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export default config;
|
export default config;
|
||||||
|
@ -5,14 +5,14 @@ export default defineConfig({
|
|||||||
plugins: [sveltekit()],
|
plugins: [sveltekit()],
|
||||||
|
|
||||||
test: {
|
test: {
|
||||||
include: ['src/**/*.{test,spec}.{js,ts}']
|
include: ['src/**/*.{test,spec}.{js,ts}'],
|
||||||
},
|
},
|
||||||
|
|
||||||
css: {
|
css: {
|
||||||
preprocessorOptions: {
|
preprocessorOptions: {
|
||||||
scss: {
|
scss: {
|
||||||
additionalData: '@use "src/variables.scss" as *;'
|
additionalData: '@use "src/variables.scss" as *;',
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user