File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
import { readdirSync } from 'fs' ;
2
2
import { join , resolve } from 'path' ;
3
3
import { pluginId } from './plugin-id' ;
4
+ import { RuleRecommendation } from '@typescript-eslint/utils/dist/ts-eslint/Rule' ;
4
5
5
6
const rootDir = resolve ( __dirname , '../../src/rules/' ) ;
6
7
@@ -10,7 +11,7 @@ export type RuleInfo = {
10
11
name : string ;
11
12
category : string ;
12
13
description : string ;
13
- recommended : boolean ;
14
+ recommended : RuleRecommendation ;
14
15
deprecated : boolean ;
15
16
fixable : boolean ;
16
17
replacedBy : string [ ] ;
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ const listFormatter = new Intl.ListFormat('en', { type: 'conjunction' });
30
30
function renderHeader ( rule : RuleInfo ) : string {
31
31
const lines = [ `# ${ rule . id } ` , `> ${ rule . description } ` ] ;
32
32
33
- if ( rule . recommended ) {
33
+ if ( rule . recommended === 'recommended' ) {
34
34
lines . push (
35
35
`> - ⭐️ This rule is included in \`plugin:${ pluginId } /recommended\` preset.`
36
36
) ;
You can’t perform that action at this time.
0 commit comments