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,