Skip to content

Commit e75c8ae

Browse files
committed
Allow ESLint empty object as function parameter, add env var to build:ci script
1 parent f004f11 commit e75c8ae

5 files changed

Lines changed: 5 additions & 3 deletions

File tree

‎.husky/pre-push‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ fi
1717
# Pushes must pass lint and unit test suites
1818
npm run lint
1919
npm run test:unit
20+
npm run build:ci

‎eslint.config.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ export default [
134134
'jsdoc/require-returns-type': 'off',
135135
'jsdoc/valid-types': 'off',
136136
'new-cap': [level, { newIsCap: true, capIsNew: false }],
137+
'no-empty-pattern': [level, { "allowObjectPatternsAsParameters": true }],
137138
'no-new': level,
138139
'no-restricted-globals': ['error'].concat(restrictedGlobals),
139140
'no-restricted-imports': [

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
],
3131
"scripts": {
3232
"build": "cross-env NODE_ENV=production npx astro build --remote",
33-
"build:ci": "cross-env NODE_ENV=production npx astro build",
33+
"build:ci": "cross-env NODE_ENV=production ASTRO_DATABASE_FILE=\"file:./.astro/content.db\" npx astro build",
3434
"check": "npx astro check",
3535
"clean": "FORCE_COLOR=1 npx rimraf dist && FORCE_COLOR=1 npx rimraf .astro",
3636
"containers:down": "FORCE_COLOR=1 docker compose --env-file test/containers/.env -f test/containers/docker-compose.e2e.yml down -v",

‎src/lib/config/linkValidator.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ export const linkValidatorPlugin = linkValidator({
2424
/** Dummy link in demo page */
2525
'/path/to#my-blob',
2626
],
27-
failOnBrokenLinks: false,
27+
failOnBrokenLinks: true,
2828
verbose: true,
2929
})

‎test/e2e/specs/04-components/navigation-desktop.spec.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
} from '@test/e2e/helpers'
1313

1414
test.describe('Desktop Navigation', () => {
15-
test.beforeEach(async (_fixtures, testInfo) => {
15+
test.beforeEach(async ({}, testInfo) => {
1616
if (testInfo.project.name.startsWith('mobile-')) {
1717
test.skip()
1818
}

0 commit comments

Comments
 (0)