Skip to content

Commit 582eff0

Browse files
committed
chore: lint
1 parent e097935 commit 582eff0

File tree

9 files changed

+257
-255
lines changed

9 files changed

+257
-255
lines changed

storage/framework/core/commerce/src/customers/store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export async function store(request: CustomerRequestType): Promise<CustomerJsonR
4343
return undefined
4444
}
4545
catch (error) {
46-
console.log(error)
46+
console.error(error)
4747
if (error instanceof Error) {
4848
if (error.message.includes('Duplicate entry') && error.message.includes('email')) {
4949
throw new Error('A customer with this email already exists')

storage/framework/core/commerce/src/payments/fetch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ export async function fetchMonthlyPaymentTrends(): Promise<Array<{
220220
}>> {
221221
// Calculate date 12 months ago
222222
const today = new Date()
223-
const todayStr = today.toISOString()
223+
// const todayStr = today.toISOString()
224224

225225
const twelveMonthsAgo = new Date(today)
226226
twelveMonthsAgo.setMonth(today.getMonth() - 11)

storage/framework/core/commerce/src/tests/payments.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ describe('Payment Module', () => {
145145
await store(secondRequest as any)
146146
}
147147
catch (error) {
148-
console.log(error)
148+
console.error(error)
149149
expect(error).toBeDefined()
150150
expect(error instanceof Error).toBe(true)
151151
// Check for the specific error message format

storage/framework/core/config/src/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { StacksOptions } from '@stacksjs/types'
2-
import { overrides } from './overrides'
3-
import { defaults } from './defaults'
42
import { initializeDbConfig } from '../../database/src/utils'
3+
import { defaults } from './defaults'
4+
import { overrides } from './overrides'
55

66
// merged defaults and overrides
77
export const config: StacksOptions = {

storage/framework/core/config/src/defaults.ts

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -327,69 +327,69 @@ export const defaults: StacksOptions = {
327327
],
328328

329329
messages: {
330-
type: "Select the type of change that you're committing:",
331-
scope: "Select the SCOPE of this change (optional):",
332-
customScope: "Select the SCOPE of this change:",
333-
subject: "Write a SHORT, IMPERATIVE tense description of the change:\n",
334-
body: "Provide a LONGER description of the change (optional). Use \"|\" to break new line:\n",
335-
breaking: "List any BREAKING CHANGES (optional). Use \"|\" to break new line:\n",
336-
footerPrefixesSelect: "Select the ISSUES type of the change list by this change (optional):",
337-
customFooterPrefixes: "Input ISSUES prefix:",
338-
footer: "List any ISSUES by this change. E.g.: #31, #34:\n",
339-
confirmCommit: "Are you sure you want to proceed with the commit above?",
330+
type: 'Select the type of change that you\'re committing:',
331+
scope: 'Select the SCOPE of this change (optional):',
332+
customScope: 'Select the SCOPE of this change:',
333+
subject: 'Write a SHORT, IMPERATIVE tense description of the change:\n',
334+
body: 'Provide a LONGER description of the change (optional). Use "|" to break new line:\n',
335+
breaking: 'List any BREAKING CHANGES (optional). Use "|" to break new line:\n',
336+
footerPrefixesSelect: 'Select the ISSUES type of the change list by this change (optional):',
337+
customFooterPrefixes: 'Input ISSUES prefix:',
338+
footer: 'List any ISSUES by this change. E.g.: #31, #34:\n',
339+
confirmCommit: 'Are you sure you want to proceed with the commit above?',
340340
},
341341

342342
types: [
343343
{
344-
value: "feat",
345-
name: "feat: ✨ A new feature",
346-
emoji: ":sparkles:",
344+
value: 'feat',
345+
name: 'feat: ✨ A new feature',
346+
emoji: ':sparkles:',
347347
},
348-
{ value: "fix", name: "fix: 🐛 A bug fix", emoji: ":bug:" },
348+
{ value: 'fix', name: 'fix: 🐛 A bug fix', emoji: ':bug:' },
349349
{
350-
value: "docs",
351-
name: "docs: 📝 Documentation only changes",
352-
emoji: ":memo:",
350+
value: 'docs',
351+
name: 'docs: 📝 Documentation only changes',
352+
emoji: ':memo:',
353353
},
354354
{
355-
value: "style",
356-
name: "style: 💄 Changes that do not affect the meaning of the code",
357-
emoji: ":lipstick:",
355+
value: 'style',
356+
name: 'style: 💄 Changes that do not affect the meaning of the code',
357+
emoji: ':lipstick:',
358358
},
359359
{
360-
value: "refactor",
361-
name: "refactor: ♻️ A code change that neither fixes a bug nor adds a feature",
362-
emoji: ":recycle:",
360+
value: 'refactor',
361+
name: 'refactor: ♻️ A code change that neither fixes a bug nor adds a feature',
362+
emoji: ':recycle:',
363363
},
364364
{
365-
value: "perf",
366-
name: "perf: ⚡️ A code change that improves performance",
367-
emoji: ":zap:",
365+
value: 'perf',
366+
name: 'perf: ⚡️ A code change that improves performance',
367+
emoji: ':zap:',
368368
},
369369
{
370-
value: "test",
371-
name: "test: ✅ Adding missing tests or adjusting existing tests",
372-
emoji: ":white_check_mark:",
370+
value: 'test',
371+
name: 'test: ✅ Adding missing tests or adjusting existing tests',
372+
emoji: ':white_check_mark:',
373373
},
374374
{
375-
value: "build",
376-
name: "build: 📦️ Changes that affect the build system or external dependencies",
377-
emoji: ":package:",
375+
value: 'build',
376+
name: 'build: 📦️ Changes that affect the build system or external dependencies',
377+
emoji: ':package:',
378378
},
379379
{
380-
value: "ci",
381-
name: "ci: 🎡 Changes to our CI configuration files and scripts",
382-
emoji: ":ferris_wheel:",
380+
value: 'ci',
381+
name: 'ci: 🎡 Changes to our CI configuration files and scripts',
382+
emoji: ':ferris_wheel:',
383383
},
384384
{
385-
value: "chore",
386-
name: "chore: 🔨 Other changes that don't modify src or test files",
387-
emoji: ":hammer:",
385+
value: 'chore',
386+
name: 'chore: 🔨 Other changes that don\'t modify src or test files',
387+
emoji: ':hammer:',
388388
},
389389
{
390-
value: "revert",
391-
name: "revert: ⏪️ Reverts a previous commit",
392-
emoji: ":rewind:",
390+
value: 'revert',
391+
name: 'revert: ⏪️ Reverts a previous commit',
392+
emoji: ':rewind:',
393393
},
394394
],
395395
},

storage/framework/core/database/src/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ let dbConfig = {
3232
password: '',
3333
port: 5432,
3434
prefix: '',
35-
}
36-
}
35+
},
36+
},
3737
}
3838

3939
// Function to initialize the config when it's available

0 commit comments

Comments
 (0)