Skip to content

Commit

Permalink
fix(eslint-config): 🐛 ignore peer deps type
Browse files Browse the repository at this point in the history
  • Loading branch information
kwaa committed Oct 10, 2023
1 parent 4180e16 commit 13870a4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/eslint/config/src/utils/create-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,29 +41,32 @@ export const createFullConfig

// TypeScript
if (options.ts) {
// @ts-ignore missing types
await import('@importantimport/eslint-config-ts')
.then(({ createConfig }) =>
createConfig(typeof options.ts === 'boolean' ? {} : options.ts)
.forEach(item => config.push(item)),
.forEach((item: FlatESLintConfigItem) => config.push(item)),
)
}

// React
if (options.react) {
// @ts-ignore missing types
await import('@importantimport/eslint-config-react')
.then(({ createConfig }) =>
createConfig(typeof options.react === 'boolean' ? {} : options.react)
.forEach(item => config.push(item)),
.forEach((item: FlatESLintConfigItem) => config.push(item)),
)
}

// Vanilla Extract
if (options.vanillaExtract) {
// @ts-ignore missing types
await import('@importantimport/eslint-config-vanilla-extract')
.then(({ createConfig }) =>
// TODO: OptionsVanillaExtract
createConfig()
.forEach(item => config.push(item)),
.forEach((item: FlatESLintConfigItem) => config.push(item)),
)
}

Expand Down

0 comments on commit 13870a4

Please sign in to comment.