From eb64817c87aba0c243503b7b356b2d7706714693 Mon Sep 17 00:00:00 2001 From: NekoChan Date: Wed, 28 Aug 2024 15:40:29 -0700 Subject: [PATCH] fix: typo --- README.md | 4 ++-- src/eslint/index.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index dfb12e1..5b38f47 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,9 @@ pnpm i -D @nekochan0122/config ``` -## ESlint (Flat Config + TypeScript) +## ESLint (Flat Config + TypeScript) -1. Install ESlint +1. Install ESLint ```bash pnpm i -D eslint typescript-eslint @eslint/js @eslint/compat @types/eslint__js diff --git a/src/eslint/index.ts b/src/eslint/index.ts index 58bc8c6..2e70da0 100644 --- a/src/eslint/index.ts +++ b/src/eslint/index.ts @@ -15,7 +15,7 @@ import type { FlatConfigArray } from '~/eslint/types' // use this type to fix error TS2742: // The inferred type of 'eslintConfig' cannot be named without a reference to 'ts-eslint'. // This is likely not portable. A type annotation is necessary. -type ESlintConfig = { +type ESLintConfig = { plugin: { 'import': FlatConfigArray 'import-sort': FlatConfigArray @@ -34,7 +34,7 @@ type ESlintConfig = { } } -const eslintConfig: ESlintConfig = { +const eslintConfig: ESLintConfig = { plugin: { 'import': importPluginConfig, 'import-sort': importSortPluignConfig,