Skip to content

Commit bf9f6ab

Browse files
committed
feat: enable experimental
1 parent d3d8df8 commit bf9f6ab

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/configs/nextjs.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ import { ensurePackages, interopDefault } from '../utils'
44

55
function normalizeRules(rules: Record<string, any>): Record<string, any> {
66
return Object.fromEntries(
7-
Object.entries(rules).map(([key, value]) =>
8-
[key, typeof value === 'string' ? [value] : value],
7+
Object.entries(rules).map(
8+
([key, value]) =>
9+
[key, typeof value === 'string' ? [value] : value],
910
),
1011
)
1112
}

src/configs/stylistic.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { pluginAntfu } from '../plugins'
33
import { interopDefault } from '../utils'
44

55
export const StylisticConfigDefaults: StylisticConfig = {
6+
experimental: true,
67
indent: 2,
78
jsx: true,
89
quotes: 'single',
@@ -17,6 +18,7 @@ export async function stylistic(
1718
options: StylisticOptions = {},
1819
): Promise<TypedFlatConfigItem[]> {
1920
const {
21+
experimental,
2022
indent,
2123
jsx,
2224
lessOpinionated = false,
@@ -31,6 +33,7 @@ export async function stylistic(
3133
const pluginStylistic = await interopDefault(import('@stylistic/eslint-plugin'))
3234

3335
const config = pluginStylistic.configs.customize({
36+
experimental,
3437
indent,
3538
jsx,
3639
pluginName: 'style',
@@ -49,7 +52,6 @@ export async function stylistic(
4952
...config.rules,
5053

5154
'antfu/consistent-chaining': 'error',
52-
'antfu/consistent-list-newline': 'error',
5355

5456
...(lessOpinionated
5557
? {
@@ -62,9 +64,6 @@ export async function stylistic(
6264
}
6365
),
6466

65-
'style/generator-star-spacing': ['error', { after: true, before: false }],
66-
'style/yield-star-spacing': ['error', { after: true, before: false }],
67-
6867
...overrides,
6968
},
7069
},

0 commit comments

Comments
 (0)