File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,9 @@ import { ensurePackages, interopDefault } from '../utils'
44
55function 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}
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { pluginAntfu } from '../plugins'
33import { interopDefault } from '../utils'
44
55export 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 } ,
You can’t perform that action at this time.
0 commit comments