@@ -15,7 +15,7 @@ export async function createESLintConfig(options: Options) {
15
15
! options . excludeLintPackageJson &&
16
16
`import packageJson from "eslint-plugin-package-json/configs/recommended";` ,
17
17
! options . excludeLintPerfectionist &&
18
- `import perfectionist from "eslint-plugin-perfectionist";` ,
18
+ `import perfectionistNatural from "eslint-plugin-perfectionist/configs/recommended-natural ";` ,
19
19
! options . excludeLintRegex &&
20
20
`import * as regexp from "eslint-plugin-regexp";` ,
21
21
! options . excludeTests && `import vitest from "eslint-plugin-vitest";` ,
@@ -35,8 +35,7 @@ export async function createESLintConfig(options: Options) {
35
35
` jsdoc.configs["flat/recommended-typescript-error"],` ,
36
36
` n.configs["flat/recommended"],` ,
37
37
! options . excludeLintPackageJson && ` packageJson,` ,
38
- ! options . excludeLintPerfectionist &&
39
- ` perfectionist.configs["recommended-natural"],` ,
38
+ ! options . excludeLintPerfectionist && ` perfectionistNatural,` ,
40
39
! options . excludeLintRegex && ` regexp.configs["flat/recommended"],` ,
41
40
] . filter ( Boolean ) ;
42
41
@@ -123,7 +122,7 @@ export default tseslint.config(
123
122
"error",
124
123
{
125
124
order: "asc",
126
- partitionByComment : true,
125
+ "partition-by-comment" : true,
127
126
type: "natural",
128
127
},
129
128
],`
0 commit comments