Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Comment thread
kenjiyoshid-a marked this conversation as resolved.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions documents/contents/about-maris/credits.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Copyright (c) 2019-present Eduardo San Martin Morote

[MIT LICENSE :material-open-in-new:](https://github.com/axios/axios-docs/blob/master/LICENSE){ target=_blank }
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Axios の MIT License のリンクが Axios docs リポジトリになっています。
Axios のリンクとする場合には、以下を使用してください。

https://github.com/axios/axios/blob/main/LICENSE


Copyright 2020-present John Jakob "Jake" Sarjeant
Copyright 2014-present Matt Zabriskie & Collaborators

## Prettier {#prettier style="clear:both;" }

Expand All @@ -108,6 +108,6 @@ Copyright (c) 2015 - 2017 Maxime Thirouin, David Clark & Richard Hallows

[MIT License :material-open-in-new:](https://github.com/vitest-dev/vitest/blob/main/LICENSE){ target=_blank }

Copyright (c) 2021-Present Vitest Team
Copyright (c) 2021-Present VoidZero Inc. and Vitest contributors
Comment thread
KentaHizume marked this conversation as resolved.

<!-- textlint-enable @textlint-rule/require-header-id -->
Original file line number Diff line number Diff line change
Expand Up @@ -132,99 +132,7 @@ npm run lint
初期設定からの変更点をハイライトで示します。

```typescript title="サンプルアプリケーションの eslint.config.ts" hl_lines="7-9 11-14 22-23 28 32 35-42 45-48 52-68 74-75 82 86-89"
import { globalIgnores } from 'eslint/config'
import { defineConfigWithVueTs, vueTsConfigs } from '@vue/eslint-config-typescript'
import pluginVue from 'eslint-plugin-vue'
import pluginCypress from 'eslint-plugin-cypress/flat'
import pluginVitest from '@vitest/eslint-plugin'
import skipFormatting from 'eslint-config-prettier/flat'
import tseslint from 'typescript-eslint'
import { configureVueProject } from '@vue/eslint-config-typescript'
import jsdoc from 'eslint-plugin-jsdoc'

configureVueProject({
// mono-repo 用に、 .vue ファイルを探すルートディレクトリをデフォルト値 `process.cwd()` から変更します。
rootDir: import.meta.dirname,
})

export default defineConfigWithVueTs(
// Lint 対象外とするファイルパスを列挙します。
globalIgnores([
'**/dist/**',
'**/dist-ssr/**',
'**/coverage/**',
'**/src/generated/**',
'**/mockServiceWorker.js',
]),

// Vue.js 向けの推奨ルールを適用します。
// .vue ファイルを Lint の対象とします。
...pluginVue.configs['flat/recommended'],

// TypeScript + Vue.js 向けの型情報を使用した推奨ルールを適用します。
// .vue .ts .mts .tsx ファイルを Lint の対象とします。
vueTsConfigs.recommendedTypeChecked,

// 型情報を使用した Lint を実行するために、 tsconfig ファイルを探すための設定をします。
{
languageOptions: {
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},
},

// JavaScript ファイルに対しては、 型情報を使用した Lint は無効化します。
{
files: ['**/*.js'],
extends: [tseslint.configs.disableTypeChecked],
},

// プロジェクトやワークスペースに固有のルールを適用します。
// 必要に応じて対象のファイルやルールを設定します。
{
name: 'dressca-frontend/additional-rules',
files: ['**/*.{vue,ts,mts,tsx}'],
rules: {
'no-console': 'warn',
'no-alert': 'warn',
'@typescript-eslint/no-floating-promises': [
'error',
{
// 戻り値の Promise を await 不要とみなすメソッドを例外登録します。
allowForKnownSafeCalls: [
{ from: 'package', name: ['push', 'replace'], package: 'vue-router' },
],
},
],
},
},

// Cypress 用のテストスイートに対して、Cypress 推奨の Lint ルールを適用します。
{
...pluginCypress.configs.recommended,
files: [
'**/cypress/e2e/**/*.{cy,spec}.{js,ts,jsx,tsx}',
'**/cypress/support/**/*.{js,ts,jsx,tsx}',
],
},

// Vitest 用のテストスイートに対して、 Vitest 推奨の Lint ルールを適用します。
{
...pluginVitest.configs.recommended,
files: ['**/src/**/__tests__/**/*'],
},

// TypeScript ファイルに対して JSDoc 形式のドキュメンテーションを強制します。
{
...jsdoc.configs['flat/recommended-typescript-error'],
files: ['**/*.ts'],
},

// コードのフォーマットは Prettier で実行するので、 ESLint のフォーマットルールは無効化します。
skipFormatting,
)
https://github.com/AlesInfiny/maris/blob/main/samples/Dressca/dressca-frontend/eslint.config.ts
```

#### mono-repo 用の設定 {#mono-repo-config}
Expand Down
62 changes: 45 additions & 17 deletions documents/contents/images/about-maris/vitest-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading