Skip to content

Commit ccf5bc7

Browse files
committed
chore: fix ci
1 parent ab8ae13 commit ccf5bc7

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/configs/react.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import globals from 'globals'
22
import type { FlatESLintConfigItem, OptionsHasTypeScript, OptionsOverrides, OptionsStylistic } from '../types'
33
import { GLOB_JSX, GLOB_TSX } from '../globs'
4-
import { parserTs, pluginReact, pluginReactHooks } from '../plugins'
4+
import { pluginReact, pluginReactHooks } from '../plugins'
55
import { OFF } from './../flags'
66

77
export function react(options: OptionsHasTypeScript & OptionsOverrides & OptionsStylistic = {}): FlatESLintConfigItem[] {
@@ -11,7 +11,7 @@ export function react(options: OptionsHasTypeScript & OptionsOverrides & Options
1111
} = options
1212

1313
const {
14-
indent = 4,
14+
indent = 2,
1515
} = typeof stylistic === 'boolean' ? {} : stylistic
1616

1717
const extensions = [GLOB_JSX, ...[options.typescript ? GLOB_TSX : '']]

src/configs/typescript.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import process from 'node:process'
22
import type { FlatESLintConfigItem, OptionsComponentExts, OptionsOverrides, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes } from '../types'
3-
import { GLOB_JS, GLOB_SRC, GLOB_TESTS, GLOB_TS, GLOB_TSX } from '../globs'
3+
import { GLOB_JS, GLOB_SRC, GLOB_TESTS } from '../globs'
44
import { parserTs, pluginAntfu, pluginImport, pluginTs } from '../plugins'
55
import { OFF } from '../flags'
66
import { renameRules } from '../utils'

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
"compilerOptions": {
33
"target": "es2020",
44
"jsx": "preserve",
5+
"baseUrl": ".",
56
"module": "es2020",
67
"moduleResolution": "Bundler",
7-
"baseUrl": ".",
8-
"esModuleInterop": true,
98
"strict": true,
9+
"esModuleInterop": true,
1010
"skipLibCheck": true
1111
}
1212
}

0 commit comments

Comments
 (0)