From 69fa60da72906364528284fbc29787e8215c6a41 Mon Sep 17 00:00:00 2001 From: SARDONYX-sard <68905624+SARDONYX-sard@users.noreply.github.com> Date: Wed, 24 Jul 2024 21:23:28 +0900 Subject: [PATCH] fix: fix settings --- .github/workflows/lint-and-test.yaml | 3 ++- .prettierrc.cjs => .prettierrc.js | 4 +++- gui/frontend/.eslintrc.cjs | 6 +++++- 3 files changed, 10 insertions(+), 3 deletions(-) rename .prettierrc.cjs => .prettierrc.js (90%) diff --git a/.github/workflows/lint-and-test.yaml b/.github/workflows/lint-and-test.yaml index 8a90220..6b41db8 100644 --- a/.github/workflows/lint-and-test.yaml +++ b/.github/workflows/lint-and-test.yaml @@ -15,7 +15,8 @@ jobs: strategy: fail-fast: false matrix: - platform: [macos-latest, ubuntu-20.04, windows-latest] + # platform: [macos-latest, ubuntu-20.04, windows-latest] + platform: [windows-latest] runs-on: ${{ matrix.platform }} steps: diff --git a/.prettierrc.cjs b/.prettierrc.js similarity index 90% rename from .prettierrc.cjs rename to .prettierrc.js index 5d613f5..fd1fc27 100644 --- a/.prettierrc.cjs +++ b/.prettierrc.js @@ -1,7 +1,9 @@ //! NOTE: If this file is not in the root directory, VSCode's prettier extension will not reflect this setting. //! Use prettier because biome is fast but does not yet support yaml formatting. +// @ts-check + /** @type {import('prettier').Options} */ -module.exports = { +export default { semi: true, singleQuote: true, printWidth: 120, diff --git a/gui/frontend/.eslintrc.cjs b/gui/frontend/.eslintrc.cjs index cd04bf7..2d4d1e6 100644 --- a/gui/frontend/.eslintrc.cjs +++ b/gui/frontend/.eslintrc.cjs @@ -1,7 +1,11 @@ // For compatibility with Biome (fast linter&fmt made by Rust), the following settings are made // to compensate for missing functions of Biome with eslint. -/** @type {import('eslint/lib/shared/types').ConfigData} */ +// @ts-check + +/** @typedef {import('eslint').ESLint.ConfigData} ConfigData */ + +/** @type {ConfigData} */ module.exports = { extends: ['next/core-web-vitals'], settings: {