@@ -2,39 +2,24 @@ import type { TypedFlatConfigItem } from '../types';
22import { interopDefault } from '../utils' ;
33
44export async function jsdoc ( ) : Promise < TypedFlatConfigItem [ ] > {
5+ const jsdocPlugin = await interopDefault ( import ( 'eslint-plugin-jsdoc' ) ) ;
6+ const recommendedRules = jsdocPlugin . configs [ 'flat/recommended' ] . rules ;
7+
58 return [
69 {
710 name : 'mheob/jsdoc/rules' ,
811 plugins : {
9- jsdoc : await interopDefault ( import ( 'eslint-plugin-jsdoc' ) ) ,
12+ jsdoc : jsdocPlugin ,
1013 } ,
1114 rules : {
12- 'jsdoc/check-access' : 'warn' ,
13- 'jsdoc/check-alignment' : 'warn' ,
14- 'jsdoc/check-param-names' : 'warn' ,
15- 'jsdoc/check-property-names' : 'warn' ,
16- 'jsdoc/check-tag-names' : 'warn' ,
17- 'jsdoc/check-types' : 'warn' ,
18- 'jsdoc/check-values' : 'warn' ,
19- 'jsdoc/empty-tags' : 'warn' ,
20- 'jsdoc/implements-on-classes' : 'warn' ,
21- 'jsdoc/multiline-blocks' : 'warn' ,
22- 'jsdoc/no-defaults' : 'warn' ,
23- 'jsdoc/no-multi-asterisks' : 'warn' ,
24- 'jsdoc/no-undefined-types' : 'warn' ,
25- 'jsdoc/require-param' : 'warn' ,
26- 'jsdoc/require-param-description' : 'warn' ,
27- 'jsdoc/require-param-name' : 'warn' ,
28- 'jsdoc/require-property' : 'warn' ,
29- 'jsdoc/require-property-description' : 'warn' ,
30- 'jsdoc/require-property-name' : 'warn' ,
31- 'jsdoc/require-returns' : 'warn' ,
32- 'jsdoc/require-returns-check' : 'warn' ,
33- 'jsdoc/require-returns-description' : 'warn' ,
34- 'jsdoc/require-yields' : 'warn' ,
35- 'jsdoc/require-yields-check' : 'warn' ,
15+ ...recommendedRules ,
16+
17+ 'jsdoc/no-restricted-syntax' : 'warn' ,
18+ 'jsdoc/reject-any-type' : 'warn' ,
19+ 'jsdoc/reject-function-type' : 'warn' ,
20+ 'jsdoc/require-jsdoc' : 'warn' ,
21+ 'jsdoc/require-next-type' : 'warn' ,
3622 'jsdoc/tag-lines' : [ 'warn' , 'always' , { count : 0 , startLines : 1 } ] ,
37- 'jsdoc/valid-types' : 'warn' ,
3823 } ,
3924 } ,
4025 ] ;
0 commit comments