diff --git a/.github/renovate.json b/.github/renovate.json index 39004bcb..0cf312c6 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -1,16 +1,8 @@ { - "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "extends": [ - "config:recommended" - ], - "labels": [ - "dependencies", - "renovate", - "bot" - ], - "schedule": [ - "every weekend" - ], - "assigneesFromCodeOwners": true, - "reviewersFromCodeOwners": true + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": ["config:recommended"], + "labels": ["dependencies", "renovate", "bot"], + "schedule": ["every weekend"], + "assigneesFromCodeOwners": true, + "reviewersFromCodeOwners": true } diff --git a/.lintstagedrc.json b/.lintstagedrc.json index 84179501..b0e661a0 100644 --- a/.lintstagedrc.json +++ b/.lintstagedrc.json @@ -1,14 +1,6 @@ { - "src/**/*.{ts,tsx,css,astro}": [ - "yarn format:changed" - ], - "src/**/*.{ts,tsx,astro}": [ - "yarn lint:ts:changed" - ], - "src/**/*.css": [ - "yarn lint:styles" - ], - "src/**/*.{test,spec}.{ts,tsx}": [ - "yarn test --bail --findRelatedTests" - ] + "src/**/*.{ts,tsx,css,astro}": ["yarn format:changed"], + "src/**/*.{ts,tsx,astro}": ["yarn lint:ts:changed"], + "src/**/*.css": ["yarn lint:styles"], + "src/**/*.{test,spec}.{ts,tsx}": ["yarn test --bail --findRelatedTests"] } diff --git a/.stylelintrc.cjs b/.stylelintrc.cjs index e4e00405..dda339a9 100644 --- a/.stylelintrc.cjs +++ b/.stylelintrc.cjs @@ -1,12 +1,12 @@ /** @type {import('stylelint').Config} */ module.exports = { - extends: "stylelint-config-recommended", - plugins: ["stylelint-order"], - allowEmptyInput: true, - rules: { - "order/properties-alphabetical-order": true, - "selector-class-pattern": null, - "value-keyword-case": null, - "custom-property-pattern": null, - }, + extends: "stylelint-config-recommended", + plugins: ["stylelint-order"], + allowEmptyInput: true, + rules: { + "order/properties-alphabetical-order": true, + "selector-class-pattern": null, + "value-keyword-case": null, + "custom-property-pattern": null, + }, }; diff --git a/commitlint.config.ts b/commitlint.config.ts index 127168e2..5367bd1a 100644 --- a/commitlint.config.ts +++ b/commitlint.config.ts @@ -1,18 +1,14 @@ import type { UserConfig } from "@commitlint/types"; const Configuration: UserConfig = { - extends: ["@commitlint/config-conventional"], - parserPreset: "conventional-changelog-atom", - formatter: "@commitlint/format", - rules: { - "scope-case": [ - 2, - "always", - ["lower-case", "pascal-case", "camel-case"], - ], - "scope-enum": [2, "always", ["deps", "other"]], - "header-max-length": [2, "always", 130], - }, + extends: ["@commitlint/config-conventional"], + parserPreset: "conventional-changelog-atom", + formatter: "@commitlint/format", + rules: { + "scope-case": [2, "always", ["lower-case", "pascal-case", "camel-case"]], + "scope-enum": [2, "always", ["deps", "other"]], + "header-max-length": [2, "always", 130], + }, }; export default Configuration; diff --git a/package.json b/package.json index 0abfbefb..140724ee 100644 --- a/package.json +++ b/package.json @@ -29,10 +29,10 @@ "sync": "astro sync", "check": "astro check", "test": "vitest --passWithNoTests", - "test:changed": "yarn test --bail --findRelatedTests --passWithNoTests", - "test:all": "yarn test --passWithNoTests", - "test:ut": "yarn test --passWithNoTests", - "test:e2e": "yarn test --passWithNoTests", + "test:changed": "yarn test --bail --findRelatedTests", + "test:all": "yarn test", + "test:ut": "yarn test", + "test:e2e": "yarn test", "format": "biome check --write --no-errors-on-unmatched", "format:all": "yarn format .", "format:changed": "yarn format --changed", diff --git a/src/pages/articles/index.astro b/src/pages/articles/index.astro index b00d67b6..b6298a9e 100644 --- a/src/pages/articles/index.astro +++ b/src/pages/articles/index.astro @@ -20,8 +20,7 @@ const featuredArticle = getFeaturedArticle(articles); { articles .filter((article) => article.data.slug !== featuredArticle.data.slug) - .map((article, index) => { - return; + .map((article, index) => (