Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

Commit

Permalink
fix(projects): fix react config
Browse files Browse the repository at this point in the history
  • Loading branch information
honghuangdc committed Dec 11, 2023
1 parent d02f4b6 commit ab938dd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 69 deletions.
76 changes: 8 additions & 68 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/configs/react.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ensurePackages, interopDefault } from '../shared';
import { GLOB_JSX, GLOB_TSX } from '../constants/glob';

export async function createReactConfig(enable?: boolean, reactNative?: boolean) {
if (!enable) return [];
if (!enable && !reactNative) return [];

await ensurePackages(['eslint-plugin-react', 'eslint-plugin-react-hooks', 'eslint-plugin-react-refresh']);
if (reactNative) {
Expand Down

0 comments on commit ab938dd

Please sign in to comment.